Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referring to pages in separate projects?
Message
 
 
À
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:
01433941
Vues:
36
>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.

In the ASP.NET project I worked on there were Default.aspx in different subfolders and here is how they were referenced in the SiteMap
<siteMapNode url="default.aspx" title="Home" description="The Main Admin Page">
    <siteMapNode title="Administration" description="Manage users, view form data & web stats" roles="FCAdmin">
    <siteMapNode url="AddUsers/default.aspx" title="Manage User Accounts" description ="Manage Back-End Users" />
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform