Note that there are some explanatory texts on larger screens.

plurals
  1. POcalling pages from database in navigateurl in materpages with pages in another folder
    primarykey
    data
    text
    <p>First of all, I would like to apologise on the questions that I have put forth, since I didn't know how to go ahead with that</p> <p>Im creating a website in asp.net using vb and i have a problem.</p> <p>I have created a database to display the menu names with the location of the pages.</p> <p>I have created a folder call /Pages/MasterPages in the root folder /Pages wherein the masterpage design goes in that and normal surfing pages are in the root folder</p> <p>I also have a folder called /Pages/Admin wherein the CMS of the site goes into it.</p> <p>Now i have the following code that calls the menu items from the database</p> <pre><code>&lt;asp:Repeater ID="_menuDisplay" runat="server"&gt; &lt;HeaderTemplate&gt; &lt;table id="navigation" border="0"&gt; &lt;/HeaderTemplate&gt; &lt;ItemTemplate&gt; &lt;tr&gt; &lt;td&gt;&lt;asp:HyperLink ID="Hyperlink" runat="server" NavigateUrl=&lt;%# Container.DataItem("pageName") %&gt;&gt;&lt;%# Container.DataItem("menuName")%&gt;&lt;/asp:HyperLink&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/ItemTemplate&gt; &lt;FooterTemplate&gt; &lt;/table&gt; &lt;/FooterTemplate&gt; &lt;/asp:Repeater&gt; </code></pre> <p>Container.DataItem("pageName") displays the pages/home.aspx Container.DataItem("menuName") displays the Home (name for the home.aspx page)</p> <p>The above code is in the masterpage</p> <p>On execution the pagename on the internet explorer displays pages/masterpage/pages/home.aspx it should display only pages/home.aspx</p> <p>Please help</p> <p>Regards</p> <p>Leroy M</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload