473,657 Members | 2,535 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:SqlDataSou rce ID="SqlDataSour ce1" runat="server"
ConnectionStrin g="<%$
ConnectionStrin gs:PMAIntranetC ontentConnectio nString %>"
SelectCommand=" SELECT [title], [content] FROM [webs] WHERE
([pageid] = @ID)">
<SelectParamete rs>
<asp:ControlPar ameter ControlID="Tree View1" Name="ID"
PropertyName="S electedNode.Tex t" Type="string"/>
</SelectParameter s>
</asp:SqlDataSour ce>

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="Confiden tiality" url="/Intranet/Security/"
id="2" />
<siteMapNode title="Surveill ance" 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 981

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

Similar topics

0
1093
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 exception: Multiple nodes with the same URL '/UI' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.
2
1716
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 shared pages which I'd rather not have. Both sites use a master page and a Menu control bound to a SiteMap. When a user loads the intranet home page, I want the appropriate Master Page to load. As both sites are on different subnets, I can...
1
1094
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 siteMap.Load(HttpContext.Current.Server.MapPath(Me.SiteMapUrl)) Dim siteMapNodeList As XmlNodeList =
0
879
by: Mr. SweatyFinger | last post by:
how do i join sitemap datasource with a table from sql thanks
5
15060
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 simply persist any changes i made, but it doesn't happen. e.g. selected.ParentNode.ChildNodes.Remove(selected); throws a NotSupportedException "Collection is read-only"
3
5732
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 web.config. In the pages I have a sitemap datasource and corresponding menus. Question: - Where is the data cached? - How can I release it from the cache and refresh the data?
0
1090
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 web.sitemap. Eg I have 3 masterpages. One for Guest, One For Member, One For Admin. I want on these master pages for the datasource to link to the three different sitemaps based on the users role. Any suggestions or corrections in my logic...
1
2032
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 with a menu control. How can I load the correct sitemap file into the menu control based on the user's current role?
1
2640
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 appropriate sitemap based on the logged in user's role. It is not working though. Any ideas? //Master Page Code Behind protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack)
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7352
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2742
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 we have to send another system
2
1733
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.