473,503 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

passing values from sitemap to datasource

i have this in page.aspx

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:PMAIntranetContentConnectionStri ng %>"
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..

Feb 13 '07 #1
0 975

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1084
by: Atul Bahl | last post by:
How can we use the same url in sitemap. I have a default page which is also called as basic search and how can I reuse the same url but with different name.... Currently I am getting this...
2
1707
by: mike | last post by:
I'm using ASP.NET 2.0 and IIS 6 I've got a business with 2 sites requiring separate intranet info. Currently, I have 2 separate intranet sites set up in IIS. This leads to having to double up on...
1
1089
by: shapper | last post by:
Hello, I am trying to load information from a XML file using only the nodes which attribute footer=true. I created the following code: Dim siteMap As New System.Xml.XmlDocument...
0
873
by: Mr. SweatyFinger | last post by:
how do i join sitemap datasource with a table from sql thanks
5
15034
by: Tim Mackey | last post by:
hi, i have put my web.sitemap in /App_Data so i can edit it programatically via a web admin page, inheriting the modify permissions from the App_Data folder etc. i was hoping the provider would...
3
5723
by: Anders | last post by:
Hello, i have created a custom sitemap datasource. The sitemap gets all pages from a collection from a CMS system (not directly from a database). I have declared my sitemap provider as default in...
0
1080
by: tasmontique | last post by:
I have 2 more site maps apart from web.sitemap each site map is based on users role eg Admin,Member,Guest. Is there a way apart from security trimmings to implement a different sitemap apart from...
1
2024
by: VB Programmer | last post by:
Using ASP.NET 2.0 with Memberships. I have 2 folders, admin and client. Each folder has a sitemap file, admin.sitemap and client.sitemap, in the appropriate directory. I have a master page...
1
2623
by: carlos | last post by:
I am using asp.net 2.0 to bind my menu controls using xml web.sitemaps. I created a sitemap for each role, and what I am trying to do is dynamically bind the menucontrol's datasource with the...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.