CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/4/2007 5:24:32 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 308 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
advaitkul1407
Asp.Net User
Set SiteMapProvider property of SiteMapDataSource dynamically12/4/2007 5:24:32 AM

0

Hello Everybody, this is my first Post

I am using treeview & sitemap file to navigate my website. I am connecting sitemap file to treeview by using SiteMapDataSource.

I am creating sitemap file by coding. There will be no. of sitemap files each file will be of different name. Name will generate depend upon name of user who is login.

How can I connect this newly generated sitemap file to already present sitemapdatasource?  There should be only one sitemap file connected to sitemapdatasource at one time.

I think I have to add a new tag in web.config file such as

<siteMap>                  ----already present

<providers>        ----already present

Here will my new tag.

</providers>----already present

</siteMap>----already present

If this is proper solution then how can I add new tag by coding within <providers> tag of web. confing file?

Its very urgent & thanx in advance.

vsdev
Asp.Net User
Re: Set SiteMapProvider property of SiteMapDataSource dynamically12/4/2007 9:36:41 AM

0

Hi

I think it is better option to implement your own sitemap provider class and fetch the Data from the Database

Refer : URL for more details : http://msdn2.microsoft.com/en-us/library/ms178432.aspx


Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

If this solution doesn't solve your problem, just feel free to mark it as not answer and reply.
Amanda Wang - M
Asp.Net User
Re: Set SiteMapProvider property of SiteMapDataSource dynamically12/6/2007 6:18:04 AM

0

Hi,

 
advaitkul1407:

If this is proper solution then how can I add new tag by coding within <providers> tag of web. confing file?

You can use the configuration API to read, write, and encrypt sections in configuration files.

The more you can read this article: The Configuration API in .NET 2.0  .

  In this article we will look into the configuration API to prepare for issues regarding permissions, key management, and application restarts.

 

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Core Internet application development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
ASP.NET 2.0 Black Book: Includes VB 2005 and C# 2005 Codes + With CD 2007 Edition Authors: unknown, Pages: 1240, Published: 2006
ASP.NET 2.0 black book Authors: Dreamtech Software, Charul Shukla, Dreamtech Software India, Anil Kumar Barnwal, Pages: 1167, Published: 2006
Practical .NET2 and C#2 Authors: Patrick Smacchia, Pages: 992, Published: 2006
Visual Basic 2005 Programming Black Book + With CD New Edition Authors: Steven Holzner, Pages: 1504, Published: 2006

Web:
Set SiteMapProvider property of SiteMapDataSource dynamically ... Set SiteMapProvider property of SiteMapDataSource dynamically. Last post 12-06- 2007 1:18 AM by Amanda Wang - MSFT. 2 replies. Sort Posts: ...
HighOnCoding: Get high on ASP.NET articles, videos, podcasts and more! But the SiteMapDataSource class have the following properties which allows the ... It gets and sets the name of the site map provider associated with the .... but i think this doesn't work if your url is dynamic with query strings, ...
Creating a Data-Driven Web Page | .NET DEVELOPER'S JOURNAL Aug 13, 2004 ... In v2.0, navigation is supported to not only dynamically build menus ... a SiteMapDataSource control is to set the SiteMapProvider property. ...
Wicked Code: Three Cures for Common Site Map Ailments If the TreeView's ExpandDepth property is set, you want to honor that property .... In addition, the handler dynamically sets the SiteMapNode's Title property to ... That's accomplished with SiteMapDataSource's SiteMapProvider property. ...
ASP.NET QuickStart Tutorials The SiteMapDataSource control is using the default SiteMap Provider and ... enables you to set this information for the menu items that are displayed dynamically. ... dynamically the Menu control supports the following style properties: ...

Set SiteMapProvider property of SiteMapDataSource dynamically - ng ... Set SiteMapProvider property of SiteMapDataSource dynamically. Last post 12-06- 2007 1:18 AM by Amanda Wang - MSFT. 2 replies. Sort Posts: . ...
One Web.sitemap for multiple SiteMapDataSource / Menus - ng.asp ... Set SiteMapProvider property of SiteMapDataSource dynamically - ng ... There will be no. of sitemap files each file will be of different name. ...
MenuControl - SiteMapDataSource - ng.asp-net-forum ... Set SiteMapProvider property of SiteMapDataSource dynamically - ng ... Skipping first node in XML with Menu control - SitePoint Forums The SiteMapDataSource ...
Dynamic SiteMap - ng.asp-net-forum ... Set SiteMapProvider property of SiteMapDataSource dynamically - ng ... View Differences DEMO: Dynamic site map provider more suitable for hugely dynamic ...
Treeview, SiteMapDataSource, SiteMap and Caching - ng.asp-net ... You can create custom SiteMapProvider and store your sitemap information in to databese. .... dynamically change static asp menu properties ...






where to buy msdn subscription

rounded corners

the resource cannot be found.

how to get parent method's name

how to access post data ?

radio button list

can some one help me?

browser-reload causes rerun of last insert into

dll file missing

calendar controls

configurationsettings do not work

debug.assert() vs iis

use formview to create sql select

performing an operation once a day

[*-)] asp.net application compatibility with linux and mac os

login-page with access

help with usercontrol, i just dont understand this behavior.

using the serial port

how to use asp.net2.0 web part

how to communicate with another page

how to: check if user's cookies enable or not?

simple redireciton question

child classes & private parent class functions

calling a checkboxlist session variable

asp.net to html

how to make sure if checkbox is checked when checkbox is in table?

global.asax

using sitemap

getting remote machine's datetime zone?

problem with the listbox control

   
  Privacy | Contact Us
All Times Are GMT