{"id":1256,"date":"2012-03-08T12:42:58","date_gmt":"2012-03-08T12:42:58","guid":{"rendered":"http:\/\/galhano.com\/blog\/?p=1256"},"modified":"2012-03-08T12:42:58","modified_gmt":"2012-03-08T12:42:58","slug":"treeview-selectednodechanged-event-doesnt-fire","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=1256","title":{"rendered":"TreeView.SelectedNodeChanged Event, doesn&#8217;t fire"},"content":{"rendered":"<p>Occurs when a node is selected in the <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.web.ui.webcontrols.treeview.aspx\">TreeView<\/a> control.<\/p>\n<p>If\u00a0we assign any URLs to the NavigateUrl propery of the TreeNode, it will\u00a0render as a &lt;a&gt; tag,\u00a0it will not do postback, so it will not file the event;<\/p>\n<p>If\u00a0we <strong>do not<\/strong> assign any URLs to the NavigateUrl propery of the TreeNode, it will\u00a0render as a short JavaScript which used to postback.<\/p>\n<p>So I think maybe you have assign URLs to the NavigateUrl propery of the TreeNode.<\/p>\n<p>&nbsp;<\/p>\n<p>http:\/\/msdn.microsoft.com\/en-us\/library\/system.web.ui.webcontrols.treeview.selectednodechanged.aspx<\/p>\n<p>http:\/\/forums.asp.net\/t\/1361178.aspx\/1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Occurs when a node is selected in the TreeView control. If\u00a0we assign any URLs to the NavigateUrl propery of the TreeNode, it will\u00a0render as a &lt;a&gt; tag,\u00a0it will not do postback, so it will not file the event; If\u00a0we do not assign any URLs to the NavigateUrl propery of the TreeNode, it will\u00a0render as a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,22],"tags":[],"class_list":["post-1256","post","type-post","status-publish","format-standard","hentry","category-aspnet","category-microsoft","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1256"}],"version-history":[{"count":2,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1256\/revisions"}],"predecessor-version":[{"id":1258,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1256\/revisions\/1258"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1256"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}