Hi All,
I have used <asp:TreeView> tag for treeview, and i have set SelectedNodeStyle & NodeStyle Property such like has shown in below code
then I have generated Treenodes using server side code in c# , at that time i have set cssclass for Particular Treenode which Highlighted such like has shown in First select Image. after that i don't want to execute server side code
so when first time Web Form Load that Particular Node Highlighted such like has shown in First select Image.
Now I selecte another TreeNode at that time that TreeNode HighLghted but Previosly selected TreeNode also Remain Highlighted as Shown in Secend select Image ,Previous TreeNode Remain Highlighted since it's CssClass Property setting in server side code , and next time i don't want to execute server side code,
So what can i do to solve this problem , give me reply please
I have used <asp:TreeView> tag for treeview, and i have set SelectedNodeStyle & NodeStyle Property such like has shown in below code
<
asp:TreeView
ID
=
"TreeView1"
ShowLines
=
"false"
ShowExpandCollapse
=
"true"
runat
=
"server"
Height
=
"330px"
ExpandDepth
=
"10"
CssClass
=
"Normal"
ForeColor
=
"#585880"
Font-Size
=
"10px"
Font-Names
=
"Verdana"
NodeIndent
=
"10"
EnableClientScript
=
"true"
>
<
SelectedNodeStyle
CssClass
=
"treeStyleNodeSelect"
ImageUrl
=
"~/Images/leaf.gif"
/>
<
NodeStyle
CssClass
=
"treeStyleNode"
ImageUrl
=
"~/Images/leaf.gif"
/>
</
asp:TreeView
>
then I have generated Treenodes using server side code in c# , at that time i have set cssclass for Particular Treenode which Highlighted such like has shown in First select Image. after that i don't want to execute server side code
so when first time Web Form Load that Particular Node Highlighted such like has shown in First select Image.
Now I selecte another TreeNode at that time that TreeNode HighLghted but Previosly selected TreeNode also Remain Highlighted as Shown in Secend select Image ,Previous TreeNode Remain Highlighted since it's CssClass Property setting in server side code , and next time i don't want to execute server side code,
So what can i do to solve this problem , give me reply please