Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > usage of user controls across projects in a solution

Reply
Thread Tools

usage of user controls across projects in a solution

 
 
saket
Guest
Posts: n/a
 
      12-28-2005
hello frnd,

in my project..my solution includes two webapplication projects.
in webaplication1 i have created a user control...whn i m using that in webapplication2 webform...its showing error

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The virtual path '/WebApplication2/WebUserControl2.ascx' maps to another application, which is not allowed.

Source Error:
Line 1: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication3.WebForm1" %>
Line 2: <%@ Register TagPrefix="uc1" TagName="WebUserControl2" Src="../WebApplication2/WebUserControl2.ascx" %>
Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 4: <HTML>


so if any one cud help me...how to come out f it and how cud i use the control across the applications..

Regards



---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
 
Reply With Quote
 
 
 
 
Spam Catcher
Guest
Posts: n/a
 
      12-28-2005
saket <project.trainee@-NOSPAM-webspiders.com> wrote in
news::

> so if any one cud help me...how to come out f it and how cud i use the
> control across the applications..


I don't think that's possible - not to mention the user control's logic
would be in a bin file not accessible to your second web app.

You could compile the web control logic into a dll, but you'll have to
deploy the dll into both web apps as well as the ascx files.

--
Stan Kee ()
 
Reply With Quote
 
 
 
 
saket
Guest
Posts: n/a
 
      12-28-2005
hi
thanx for ur reply
i again need ur help. how wud i create the dll with user control code. actually i m a bit new to asp.net

thanx

---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing controls across user controls Vince ASP .Net 3 03-27-2008 11:46 AM
Referring to Data Source Controls across Content Controls Bill Nicholson ASP .Net Web Controls 0 09-10-2007 11:34 AM
Shareing user web controls across projects Brian Henry ASP .Net 2 10-06-2004 03:56 AM
copying asp.net projects across machines... Daniel Bass ASP .Net 0 08-06-2003 08:37 AM
Re: Uses ASP.NET form authentication across projects? Teemu Keiski ASP .Net 0 07-01-2003 08:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57