473,386 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Is there a code snippet showing how to do a Redirect on a TreeView event

Tom
Sorry... new to this. I trying to figure out how to do a page redirect when
someone clicks a treeview node. Does someone have a code snippet for this?
Nov 18 '05 #1
3 1791
Tom,
Your question is quite short, so I will assume that you are looking for
some .Net code to do this. Check out the Response.Redirect() method. If
you want to do a client redirect, then you can set the treeview node to have
a javascript onclick="location.href={newurl}".

Best regards,
Jeffrey Palermo

"Tom" <nf*@nospam.com> wrote in message
news:OL**************@TK2MSFTNGP14.phx.gbl...
Sorry... new to this. I trying to figure out how to do a page redirect when someone clicks a treeview node. Does someone have a code snippet for this?

Nov 18 '05 #2
Tom
Sorry if I wasn't clear. What I'm not sure of is how do I detect the node
that was clicked.

For example, given the following tree:

A
a1
a2
B
b1
b2
b3

If "b2" is clicked within the TreeView control, what event do I use to
determine it was b2 and not -- say -- "a1"?
"Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo> wrote in
message news:uy**************@TK2MSFTNGP11.phx.gbl...
Tom,
Your question is quite short, so I will assume that you are looking for some .Net code to do this. Check out the Response.Redirect() method. If
you want to do a client redirect, then you can set the treeview node to have a javascript onclick="location.href={newurl}".

Best regards,
Jeffrey Palermo

"Tom" <nf*@nospam.com> wrote in message
news:OL**************@TK2MSFTNGP14.phx.gbl...
Sorry... new to this. I trying to figure out how to do a page redirect

when
someone clicks a treeview node. Does someone have a code snippet for this?


Nov 18 '05 #3
Tom,
In v1.1, there is no built-in TreeView control, and I'm not familiar
with the unsupported WebControls from Microsoft for v1.0 (that includes a
TreeView). To answer your question, I would read the documentation for the
control that you are using.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo
"Tom" <nf*@nospam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Sorry if I wasn't clear. What I'm not sure of is how do I detect the node
that was clicked.

For example, given the following tree:

A
a1
a2
B
b1
b2
b3

If "b2" is clicked within the TreeView control, what event do I use to
determine it was b2 and not -- say -- "a1"?
"Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo> wrote in message news:uy**************@TK2MSFTNGP11.phx.gbl...
Tom,
Your question is quite short, so I will assume that you are looking

for
some .Net code to do this. Check out the Response.Redirect() method. If
you want to do a client redirect, then you can set the treeview node to

have
a javascript onclick="location.href={newurl}".

Best regards,
Jeffrey Palermo

"Tom" <nf*@nospam.com> wrote in message
news:OL**************@TK2MSFTNGP14.phx.gbl...
Sorry... new to this. I trying to figure out how to do a page redirect

when
someone clicks a treeview node. Does someone have a code snippet for

this?



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Spam Bill Gates | last post by:
I am using linux, php and trying to do some ssl code. I want to send some identifier that connects my database to the client browser. I was looking into a secure cookie. I only want the page...
1
by: Sean McIlroy | last post by:
There's something quite simple I'd like to do, but I'm hampered by lack of knowledge regarding Tkinter. If someone could help me out with a snippet of maximally-simple code showing, in general...
0
by: Norbert Heidbüchel | last post by:
Hi all, I have read a lot of postings and web pages about drag and drop and treeviews, but could not find an answer to my problem. Sorry, if I missed something. I am trying to drag and drop...
5
by: Dan | last post by:
We have a simple site. It's a frameset with two frames a left and a right. The left frame is essentially a list of records from a database (using a server-side repeater control). When you click...
4
by: Andrew Robinson | last post by:
I am using a TreeView to perform navigation and have a few nodes that need to generate a popup menu. For this, I use the SelectedNodeChanged event and then add the relevant "window.open" script to...
0
by: Treeview Trouble | last post by:
I have an application where there are two radio buttons each of which populates a treeview control with a directory structure. Each radio button corresponds to a different directory which may or...
1
by: kvicky | last post by:
I am trying to load child nodes to a TreeNode in a TreeView in a ASP.net web application. The Treeview with parent nodes are loaded on a Page_load while doing if( ! ISPostback ) and then in the...
7
by: Joe Cool | last post by:
Let's say I have a Treeview control on a form. Each leaf node in the Treeview has a ContextMenuStrip, each with one ToolStripMenuItem, and all ToolStripMenuItems Click event is handled by a comment...
2
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
My first time using a TreeView: I've got a TreeView that I populated with some data and it has nodes. In the Properties window, I created an Event Handler for the TreeView's AfterSelect...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.