Gezna
asked on
Treeview Node and querystring variable
Hi,
I have a treeview node (.net 2.0) that has a NavigateUrl="~/Project.asp x" . How do I say that I want to append a querystring variable of a public variable from the code behind named lang?
I thought it would be something like NavigateUrl='~/Project.asp x?<%#strLa ng%>' but this doesn't work.
Thanks
<asp:TreeView ID="infTreeView" runat="server"
ImageSet="Simple">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#5D7B9D" />
<SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="0px"
cssclass="BellowMenuBanner " NodeSpacing="0px" VerticalPadding="0px" />
<Nodes>
<asp:TreeNode NavigateUrl="~/Project.asp x" Text="Project" Value="Project" > </asp:TreeNode>
<asp:TreeNode NavigateUrl="~/Reports/Rep orts.aspx" Text="Reports" Value="Reports"></asp:Tree Node>
<asp:TreeNode NavigateUrl="~/Maintenance /UserMaint enance.asp x" Text="User Maintenance" Value="User Maintenance"></asp:TreeNod e>
</Nodes>
</asp:TreeView>
I have a treeview node (.net 2.0) that has a NavigateUrl="~/Project.asp
I thought it would be something like NavigateUrl='~/Project.asp
Thanks
<asp:TreeView ID="infTreeView" runat="server"
ImageSet="Simple">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#5D7B9D" />
<SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="0px"
cssclass="BellowMenuBanner
<Nodes>
<asp:TreeNode NavigateUrl="~/Project.asp
<asp:TreeNode NavigateUrl="~/Reports/Rep
<asp:TreeNode NavigateUrl="~/Maintenance
</Nodes>
</asp:TreeView>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
HTH