Groups > Asp .Net > VS 2005 Web Application Projects > Re: multiple web application project




multiple web application project

multiple web application project
Fri, 15 Feb 2008 16:24:33 +000
Hi,

I want to create a web application project (web application 1) with a reference
to other page (aspx) into the other web application project (web application 2).
For example, I create Login Page, and I want to use this  in every other web
application project.  I include this reference in web application 1, with the
instruction in visual studio net add existing items as link.  But when I compile
this project, I receive following error:Impossible to find the resource  http
error 404: The resource you are looking for (or one of its dependencies) may
have been removed, renamed or not to be temporarily unavailable. Verify that the
URL below is spelled correctly I'm so TIRED I want the solution
please!!!!ThanksSilvia
Post Reply
Re: multiple web application project
Fri, 15 Feb 2008 17:13:46 +000
Silvia,

If you want to share a login between projects, you need to create a control and
share that rather than just tap into other projects.  You have 2 choices for
controls, web controls or custom (server) controls. 

Web controls have the .ascx extension, you can add this as a file to each
project.  You would add your login textboxes, buttons, etc..to this .ascx file
first, then use copy it to a separate project.  Of course, the downside is that
you have to maintain the .ascx twice.

The other option is custom controls, which is a bit more advanced, you'll have
to hand code all of it, then compile it to a .dll and reference that in both of
your projects rather than one project referencing another.

here's some links to get you started:

User controls... 

http://www.startvbdotnet.com/aspsite/extras/user.aspx 

http://www.15seconds.com/issue/020319.htm 

 Custom Controls...

http://samples.gotdotnet.com/quickstart/aspplus/doc/webctrlauthoring.aspx
Post Reply
about | contact