CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/7/2008 1:47:10 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
sunny74
Asp.Net User
menu, treeview does not populate from dynamically generated xml files3/7/2008 1:47:10 PM

0/0

Dear All,

I was using a  static web .sitemap to  populate a menu and a treeview.There are 5 levels, 3 of which are displayed in the menu and rest 2 in the treeview.

Then I decided to have a dynamically generated menu from a dynamically generated web.sitemap file which gets populated from the database.

Therefore I generate a XML file with data from the database and then change the format to that of Web.sitemap and finally save the XML file as Web.sitemap.

Then I call this function( which generates the web.sitemap) in the Load event of my master page so that the menu can populate at the beginning itself.

But the problem is that the menu doesn't populate, and neither does the treeview.

The application is able to find the Web.sitemap(otherwise it would throw error) but not reading its content.

So where is the problem?

I thought may be SiteMapDataSource's which I added by dragging & dropping from toolbox was not able to access the data in Web.sitemap.

Do I need to add them dynamically? IF so how do I attach them to the web.sitemap?

Your help wll be highly appreciated.

 

Thanks.

 

 

Amanda Wang - M
Asp.Net User
Re: menu, treeview does not populate from dynamically generated xml files3/10/2008 11:43:24 AM

0/0

Hi,

You need not to generate Web.sitemap file programmaticall.

If you want to populated from the database, you can try to use the Custom Site Map Providers.

You can refer this msdn article: http://msdn2.microsoft.com/en-us/library/aa479320.aspx

about the SQL Server? site map provider, you can refer this article: http://msdn2.microsoft.com/en-us/magazine/cc163657.aspx

 

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
sunny74
Asp.Net User
Re: menu, treeview does not populate from dynamically generated xml files3/13/2008 8:16:52 AM

0/0

Hi Amanda,

The second link regarding Wicked Code article is useful for me but I knew it before only.

I followed the same article and able to generate the data for my menu and treeview but not able to get SQlCacheDependency to work.

If I write the statements given in the article it throwing errrors. I am using SQL SERVER 2005 express i.e one within the App_code.

Do u know how to do it?

Also pls do not mark your post as answer just after giving some links because u are not sure whether  the code in the links will work or not.U need to wait for my reply to find out as to whether your post has been really helpful.

 

Thanks.

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro C# with .NET 3.0: exploring the .NET universe using curly brackets Authors: Andrew Troelsen, Pages: 1186, Published: 2007
Pro VB 2005 and the .Net 2.0 Platform Authors: Andrew Troelsen, Pages: 1034, Published: 2006
Pro VB 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1377, Published: 2008
Pro C# 2005 and the .NET 2.0 Platform: Public Beta Edition Authors: Andrew W. Troelsen, Pages: 982, Published: 2005

Web:
menu, treeview does not populate from dynamically generated xml ... menu, treeview does not populate from dynamically generated xml files. Last post 03-13-2008 4:16 AM by sunny74. 2 replies. Sort Posts: ...
15 Seconds : Populating the TreeView Control from a Database Microsoft does not support any WebControl, including the TreeView. ... This time , we will use the TreeNodeSrc attribute and static XML file to create the ...
Walkthrough: Displaying Hierarchical Data in a TreeView Control The TreeView control can display any type of hierarchical data, even if the data hierarchy is logical, as in a database, and not physical, as in an XML file ...
Question and Answer Log andrew Asked: can navigation bar contents be dynamically generated from data ... menu cross frame and browser boundaries like the IE right click menu does? ...
The ASP Apr 19, 2008 ... If the Data source list does not display Microsoft SQL Server ... In this section, you will dynamically populate nodes with data. ...
Download Advanced Treeview Java Tree Menu 4.2 Free trial - Easily ... Advanced Treeview Java Tree Menu 4.2 Easily add a dynamic Tree Menu to your site .... Flash XML Menu Templates from Clix-FX We offer you the easiest way ...
Treeview Software - TreeView, DataPig Instant TreeView, 9Rays.Net ... DataPig Instant Treeview does all the work, just point to your hierarchy table .... unlimited drag-and-drop capabilities, dynamic populate, unlimited style ...
bassistance.de » jQuery plugin: Treeview I want to know if is posible to build a dynamic treeview with this pluggin? ..... server-side-generated tree must supply the PKey of the not-yet-populated ...
ASP Dotnet Xml how to populate dynamic childnode as per expand event+treeview ...... TreeView with XML Data Binding Since XML data binding does not involve creating every ...
Dynamic TreeView Example : Tree « GUI Components « JavaScript DHTML does this via a callback method which is passed into the dynamic loader ... populated by the dynamic loader method when they are expanded for the ...




Search This Site:










how to set a image path to consume multiple themes?

server.transfer and controlplaceholders

variable in web.sitemap

target property of menu control

virtualpathprovider question

how set virtual address of a <td> background tag

master pages and safari incompatibility?

menu with seperators

treeview - listing folder content.

one masterpage with gridview for using in child pages.

menu control: which item clicked?

simple menu navigation image question

how to handle masterpage's event in content page? (c#)

creating a expandable menu with treeview

100% width and height masterpage?

master page control question

master pages, content pages title problem

visible and invisible sub-menu link?

button click event

accessing content controls from codebehind

query regarding menu control in master page

how to disable tree view parent node or child node

can someone explain this treeview oninit exception

custom treeview control selectednodechanged event not firing up.

menu in vwd

are contentpages cached?

change masterpage

help with css button color scheme

sitemap

stop page flickering on tree node expand/collapse

  Privacy | Contact Us
All Times Are GMT