From my below sample code, I don't want to use Sessions to handle each click event inside treeview selected node changed.
Secondly, if you suggest me to use treenode.SelectedValue then I would say my values are dyanmically generated.
Everytime a node a clicked, the selected node value is sent in the next request xml to get response and xml schema is different for each click. How do I handle this each click event other than using session variables. I thought of using Request.Item (and integrating with URL redirect property) but I don't want to use that.
Dim trNode As New TreeNode
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
trNode.Text = "Not Postback"
Session("Flag") = 1
Protected Sub TreeView1_SelectedNodeChanged(ByVal sender As Object, ByVal e As EventArgs) Handles TreeView1.SelectedNodeChanged
If Session.Item("Flag") = 1 Then
trNode.Text = "Is PostBack"
Session("Flag") = 2
View Complete Post