Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: One solution containing multiple projects and multiple hosts

Reply
Thread Tools

Re: One solution containing multiple projects and multiple hosts

 
 
Stephen Miller
Guest
Posts: n/a
 
      06-24-2003
Can anyone help?

http://www.velocityreviews.com/forums/(E-Mail Removed) (Stephen Miller) wrote in message news:<(E-Mail Removed). com>...
> I am trying to build one common application for several clients, that
> shares a common code base. This is proving very difficult to set up.
>
> Say for example, I have two (or more) hosts, site1.mydomain.com &
> site2.mydomain.com. Code is divided into presentation, business and
> data layers. Only the presentation layer is unique amongst the two
> hosts.
>
> I have created the following directory structure:
>
> \Common\DataLayer.vb
> \Common\Login.aspx.vb
> \Host1\Login.aspx
> \Host2\Login.aspx
>
> The two Login.aspx pages differ only in layout (colours etc) and call
> the same methods in the class Login.aspx.vp. At the top of both
> login.aspx pages I have added:
>
> <%@ Page Language="vb" AutoEventWireup="false"
> Codebehind="Login.aspx.vb" Inherits="Common.Login"%>
>
> In Solution Explorer my solution looks like:
>
> Solution 'myProject' (3 Projects)
> [+] Common
> |- DataLayer.vb
> \- Login.aspx.vb
> [+] Host1
> \- Login.aspx
> [+] Host2
> \- Login.aspx
>
> My Login.aspx.vb file looks like:
>
> Imports System.Web
> Imports System.Web.Security
> Imports System.DateTime
> Imports Common.DataLayer
>
> Public Class Login
> Inherits System.Web.UI.Page
> ...
> End Class
>
> Now, my problem is that when I select 'view code' for either of the
> two login.aspx files I get the following error message:
>
> "The class file for this Web Form was not loaded. Close the view,
> correct any errors, then reopen the Web Form"
>
> How can I configure Visual Studio so that two projects can share the
> same code-behind class for an aspx page?
>
> - Stephen

 
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
Multiple projects in one solution - best way? Stefan Uhlemann ASP .Net 3 12-15-2008 01:11 PM
A solution with multiple web projects and ASPX page reusability Max2006 ASP .Net 2 10-02-2007 02:14 AM
hosts can only ping other hosts after router has pinged them? spec Cisco 7 06-05-2006 08:06 AM
UNIX Script To Remove Hosts from Hosts file Bla Perl Misc 1 04-10-2005 04:14 PM
UNIX Script To Remove Hosts from Hosts file Bla Perl 0 04-08-2005 12:46 AM



Advertisments