TreeView.SelectedNodeChanged Event, doesn’t fire

Occurs when a node is selected in the TreeView control.

If we assign any URLs to the NavigateUrl propery of the TreeNode, it will render as a <a> tag, it will not do postback, so it will not file the event;

If we do not assign any URLs to the NavigateUrl propery of the TreeNode, it will render as a short JavaScript which used to postback.

So I think maybe you have assign URLs to the NavigateUrl propery of the TreeNode.

 

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.selectednodechanged.aspx

http://forums.asp.net/t/1361178.aspx/1

Deixe um comentário

O seu endereço de email não será publicado. Campos obrigatórios marcados com *