Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
target = "_Self" doesnt work
posted

Either way it opens in a new window: 

I have tried to set the target on the treeview:
<asp:TreeView ID="TreeView1" runat="server" Font-Names="Arial" Font-Size="8pt" ForeColor="Black" Target="_Self">
</asp:TreeView>

or dynamically in the code:

'get continents
taLocations.Fill(dsLocations.Locations)

'loop through continents to fill list bar
For x = 0 To dsLocations.Locations.Rows.Count - 1
locID = Trim(dsLocations.Locations.Rows(x).Item(
"locID"))
locDesc = Trim(dsLocations.Locations.Rows(x).Item(
"locDesc"))
Dim pn As New TreeNode
pn.Text = locDesc
pn.ToolTip = locDesc
pn.Expanded =
False
ctr += 1

'add nodes for continent
TreeView1.Nodes.Add(pn)

'get countries for location
taMemberCountries.FillByLoc(dsMemberCountries.MemberCountries, locID)

'loop through countries to fill continent group
For y = 0 To dsMemberCountries.MemberCountries.Rows.Count - 1
mcID = dsMemberCountries.MemberCountries.Rows(y).Item(
"ID")
mcName = Trim(dsMemberCountries.MemberCountries.Rows(y).Item(
"countryName"))
Dim cn As New TreeNode
cn.NavigateUrl =
"http://test.cheerunion.org/page.aspx?id=M&mc=" & mcID
cn.Text = mcName
cn.ToolTip = mcName
cn.Target =
"_Self"

'add country tree node
TreeView1.Nodes(ctr - 1).ChildNodes.Add(cn)

Next
Next

Parents
No Data
Reply Children
No Data