passing values from sitemap to datasource

V

vncntj

i have this in page.aspx

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:pMAIntranetContentConnectionString %>"
SelectCommand="SELECT [title], [content] FROM [webs] WHERE
([pageid] = @ID)">
<SelectParameters>
<asp:ControlParameter ControlID="TreeView1" Name="ID"
PropertyName="SelectedNode.Text" Type="string"/>
</SelectParameters>
</asp:SqlDataSource>

and this sitemap that i want to use to pass values to the datasource..

navigate.xml
<siteMapNode title="Security" url="/Intranet/Security/" text="1">
<siteMapNode title="Museum Security" url="/Intranet/Security/"
id="1">
<siteMapNode title="Confidentiality" url="/Intranet/Security/"
id="2" />
<siteMapNode title="Surveillance" url="/Intranet/Security/" id="3"/ <siteMapNode title="Office Keys" url="/Intranet/Security/" id="4"/ <siteMapNode title="Property Passes" url="/Intranet/Security/"
id="5"/>
</siteMapNode>

but the .aspx page won't take the values..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top