Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referring to pages in separate projects?
Message
De
10/11/2009 08:31:10
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
09/11/2009 22:23:39
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Database:
Visual FoxPro
Divers
Thread ID:
01433940
Message ID:
01433980
Vues:
32
>I have a Visual Studio solution which has two Asp.Net Web Forms projects. Each project has a page called Default.aspx, as well as other pages too. So, how would I address a link on a page in Project1 so that it would point to a page in Project 2?
>
>For example, here is a link in Project 1 that points to a page in the same project, but how would I make a call point to a page in Project 2? How would I format the NavigateURL link?
>
>
><asp:HyperLink id="linkPartsList" NavigateUrl="~/PartsList.aspx" runat="server" class="menulink">Parts List</asp:HyperLink>
>
>
>I suppose the issue here is how the app is published to IIS server, right? I can't dump everything into the same folder, since some pages have the same name.

Yes, you are right it will depend on how they are published to IIS. You should be able to set your default document for any folder as Default.aspx and then a navigation to that folder will give the default document. With two different projects are they going to be published to different URL's or just in different folders?
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform