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? 3 1800
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.Redire ct() method. If
you want to do a client redirect, then you can set the treeview node to have
a javascript onclick="locati on.href={newurl }".
Best regards,
Jeffrey Palermo
"Tom" <nf*@nospam.com > wrote in message
news:OL******** ******@TK2MSFTN GP14.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?
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.c om/weblog/jpalermo> wrote in
message news:uy******** ******@TK2MSFTN GP11.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.Redire ct() method. If you want to do a client redirect, then you can set the treeview node to
have a javascript onclick="locati on.href={newurl }".
Best regards, Jeffrey Palermo
"Tom" <nf*@nospam.com > wrote in message news:OL******** ******@TK2MSFTN GP14.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?
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******** ********@tk2msf tngp13.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.c om/weblog/jpalermo> wrote
in message news:uy******** ******@TK2MSFTN GP11.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.Redire ct() method.
If you want to do a client redirect, then you can set the treeview node to have a javascript onclick="locati on.href={newurl }".
Best regards, Jeffrey Palermo
"Tom" <nf*@nospam.com > wrote in message news:OL******** ******@TK2MSFTN GP14.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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
accessed over a SSL connection. Whats the best way to insure the clinet browser can only see my
page if they are ssl connected to it? In adding a 1 to the end of my send cookie code, it sends
the cookie regardless of if they are ssl connected or...
|
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 terms, how to
do this, that would be really great. What I want to do is simply to
move a shape around on the screen using the mouse. I've looked at
Tkdnd.py but I can't seem to extract what I need from the more
involved stuff in there.
Peace,
STM
|
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 treenodes defined by myself and
don't understand, how to get the nodes data in the dragdrop event.
I'm not very experienced in .NET and for sure there is a simple solution.
I've written a short sample program, based on well known examples,
|
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 on one of the items in the
left frame, it targets the right frame and displays a form prefilled with
information for the item you clicked.
The problem is the left frame's list just shows the names of the items, and
the name of the item is...
|
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 the page using the
ClientScript.RegisterStartupScript method.
This seems to work fine, but if the user clicks on the same node twice, the
event doesn't fire a second time. I assume this is by design as the Node
Selection hasn't changed, but...
| |
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 may not have some
subdirectories with the same name. I am not having any problems populating
the treeview with the corresponding directory structure when switching
between radio buttons. In the treeview's AfterSelect event, I take the path
from...
|
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 Treeview event I am dynamically
trying to load the child nodes to the exisisting TreeView. The problem
is since the TreeView is being loaded on not a Postback, I am unable to
refer to any node in the TreeView event. Can anybody tell me how to...
|
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 event
handler.
How do I determine which Treeview Node signalled the menu event in the
common event handler?
|
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 method, and it allows me to determine what Tree Node has been
selected.
However, if I expand the TreeView and select one of the Child TreeNodes,
they do not trigger this event.
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |