Hi,
I'm using an <asp:TreeViewco ntrol on my page.
Combining the TreeView's OnTreeNodePopul ate server-side event handler,
and the PopulateOnDeman d set to "true" on each node, I get client-based
functionality, with callbacks. I can clearly see that the page does not
refresh, which is good, as this was my intention to begin with.
I also closely inspected the client-side sources (using "Instant
Source") and saw that on every click on the "+" (expand) icon, I get a
real callback invocation, using XMLHTTP. So far so good.
The problem:
Whenever I click the "+" icon, and the callback is invoked, my page's
onbeforeunload( ) client-side event is triggered.
I don't know what's causing the page to "unload". Apart from the
TreeView control the page has nothing else on it. There's no explicit
"navigate" or "submit" on the page, so this "unloading" is performed
implicitely but I don't know what's triggering it. I need to stop the
page from "unloading" whenever I try to expand a node, but still
maitain my callback functionality.
Note:
When I click the "+", I access my breakpoint in the Page_Load()
function and IsPostBack is set to "true", but the page does not
actually refresh on the client-side.
Why does it implicitly post back?
How can I prevent my tree from posting back?
How can it be that page posts back on the server side, but the client
side remains steady?
Help will be highly appreciated.
Thank you!
Alon. 0 1518 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: WJA |
last post by:
I'm looking at building an application that needs to display 4 levels
of hierarchical data. Initially the obvious choice for this would seem
to be the treeview control. After searching this newsgroup I've found
that there is a lot of opinion that says to stay away from the treeview
if at all possible due to lack of documentation and distribution
problems. Added to this, I've never used it before and don't need a new
learning curve at the...
|
by: SoKool |
last post by:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control.
I intend to use a treeview to generate a dynamic menu by collating data from a Sql Server Table.
Many thanks.
|
by: DKode |
last post by:
Ok,
I am creating a directory browsing app and am using the obout.com
TreeView control. This is exactly what I was looking for, as of right
now my code is quite sloppy and I plan on cleaning it up.
Here is my setup:
Client--->IIS Server--->File Server
when I populate the treeview, I do so all on the first time they hit
|
by: Srinivasa Raghavan |
last post by:
Hi All,
I have some doubts on the Treeview control and Form
Authentication
1) will Form Authentication work if cookies are disabled.
2) I have problem in the following code (TreeView Control
with checkbox)
|
by: Chris |
last post by:
Hi,
anyone experience with the TreeView control that is available in the
Microsoft.Web.UI.WebControls component ?
I want to add a few nodes to the TreeView-control but don't know quite how :
// Creating a few nodes
TreeNode node1 = new TreeNode();
node1.Text = "Canada";
| |
by: Ben Coats |
last post by:
Hey,
I'm trying to find code for an Explorer-style Directory ComboBox. (You know, it display "Desktop", "My Computer", all drives, etc., but it has a treeview control inside the combobox so that you can navigate through the file system as well.) I've found some on the web, but all of them just have the drives and desktop directories and are static in that you cannot expand the directories. I normally build a treeview control to do it with,...
|
by: david |
last post by:
I do not know if there is a treeView control for web form in .NET 1.1.
I know there is IE Webcontrol package which has the treeview control for
..net 1.0. I have tested it in .net 1.1 before. It did not work. About the
status of it now? Is there any alternative for TreeView control for web form
in .net 1.1 and Visual Studio 2003? How about .net 2.0 and Visual Studio 2005?
Thank tou
David
|
by: eSolTec, Inc. 501(c)(3) |
last post by:
Thank you in advance for any and all assistance. I have a control
"tv_ClientMain" that populates with nodes of system information, software,
hardware etc. I would like to serialize it from the client to a host where
the treeview control is tv_HostMain. I have tv_Host/tv_Client on the client
app.
I currently am serializing an image from the client to the host and it works
great.
|
by: echuck66 |
last post by:
Hi,
I have a Winforms 2.0 project that I'm working on that involves populating a treeview control from data contained in a fairly large dataset that has to be refreshed periodically.
I have no problems populating the treeview nodes initially, but am somewhat flustered as to how I should go about keeping the treeview control current with the dataset.
After the dataset has been refreshed, I can, of course, clear the treeview nodes and...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| | |