SiteMapPathProvider
-
hi, I wrote my custom provider for sitemappath using sqldatasource but there is a little problem at this point. first things first my page contains textbox (TextBox1), treeView (TreeView1) and Button(Button1) and if the users select a node then write something in the textbox and then press Button1, all data write database where the value of selected node in, the data can be written on the database but after postback the treeview isnt updated. i wrote Page.DataBind() but that method didnt work and wasnt still updated. if i stop temporary server in vs8 than start again tree view has been being updated. so what should i do to pass over this issue ? Thanks and Regards..
-
hi, I wrote my custom provider for sitemappath using sqldatasource but there is a little problem at this point. first things first my page contains textbox (TextBox1), treeView (TreeView1) and Button(Button1) and if the users select a node then write something in the textbox and then press Button1, all data write database where the value of selected node in, the data can be written on the database but after postback the treeview isnt updated. i wrote Page.DataBind() but that method didnt work and wasnt still updated. if i stop temporary server in vs8 than start again tree view has been being updated. so what should i do to pass over this issue ? Thanks and Regards..
help ?
-
hi, I wrote my custom provider for sitemappath using sqldatasource but there is a little problem at this point. first things first my page contains textbox (TextBox1), treeView (TreeView1) and Button(Button1) and if the users select a node then write something in the textbox and then press Button1, all data write database where the value of selected node in, the data can be written on the database but after postback the treeview isnt updated. i wrote Page.DataBind() but that method didnt work and wasnt still updated. if i stop temporary server in vs8 than start again tree view has been being updated. so what should i do to pass over this issue ? Thanks and Regards..
-
Does your SiteMapProvider resemble this one: http://msdn.microsoft.com/msdnmag/issues/05/06/WickedCode/[^]? If so, your problem could be, that the root
SiteMapNode
is cached and therefore isn't null at the beginning ofBuildSiteMap
.so what should i do then ?
-
so what should i do then ?
-
You could try using SqlCacheDependency like in this improved version: http://msdn.microsoft.com/msdnmag/issues/06/02/WickedCode/[^]
wow thats it :) thanks...