Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. SiteMapPathProvider

SiteMapPathProvider

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesysadmindata-structuresquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tarik Guney
    wrote on last edited by
    #1

    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..

    T S 2 Replies Last reply
    0
    • T Tarik Guney

      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..

      T Offline
      T Offline
      Tarik Guney
      wrote on last edited by
      #2

      help ?

      1 Reply Last reply
      0
      • T Tarik Guney

        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..

        S Offline
        S Offline
        szukuro
        wrote on last edited by
        #3

        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 of BuildSiteMap.

        T 1 Reply Last reply
        0
        • S szukuro

          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 of BuildSiteMap.

          T Offline
          T Offline
          Tarik Guney
          wrote on last edited by
          #4

          so what should i do then ?

          S 1 Reply Last reply
          0
          • T Tarik Guney

            so what should i do then ?

            S Offline
            S Offline
            szukuro
            wrote on last edited by
            #5

            You could try using SqlCacheDependency like in this improved version: http://msdn.microsoft.com/msdnmag/issues/06/02/WickedCode/[^]

            T 1 Reply Last reply
            0
            • S szukuro

              You could try using SqlCacheDependency like in this improved version: http://msdn.microsoft.com/msdnmag/issues/06/02/WickedCode/[^]

              T Offline
              T Offline
              Tarik Guney
              wrote on last edited by
              #6

              wow thats it :) thanks...

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups