473,856 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Auto refresh spoilt by TreeView

Hi

I have a web page that has a TreeView on it. If I DONT'T expand the TreeView
nodes, the auto refresh works nicely: my page gets refreshed every minute. As
soon as I expand a node on the TreeView, the page stops auto-refreshing.

Any ideas why this is happening?

I have acheived auto refresh using the following:

HtmlMeta meta = new HtmlMeta();
meta.HttpEquiv = "refresh";
meta.Content = ConfigurationMa nager.AppSettin gs["RefreshFrequen cy"];
Page.Header.Con trols.Add(meta) ;

Jul 22 '08 #1
2 2921
you proably have the tree control postback on expand, and do not setup the
refresh code on the postback.

-- bruce (sqlwork.com)
"Amir Tohidi" wrote:
Hi

I have a web page that has a TreeView on it. If I DONT'T expand the TreeView
nodes, the auto refresh works nicely: my page gets refreshed every minute. As
soon as I expand a node on the TreeView, the page stops auto-refreshing.

Any ideas why this is happening?

I have acheived auto refresh using the following:

HtmlMeta meta = new HtmlMeta();
meta.HttpEquiv = "refresh";
meta.Content = ConfigurationMa nager.AppSettin gs["RefreshFrequen cy"];
Page.Header.Con trols.Add(meta) ;
Jul 22 '08 #2
Hi Bruce

Thanks for the suggestion. I had already suspected it might be due to this
but there is no postback on my node clicks.

Amir

"bruce barker" wrote:
you proably have the tree control postback on expand, and do not setup the
refresh code on the postback.

-- bruce (sqlwork.com)
"Amir Tohidi" wrote:
Hi

I have a web page that has a TreeView on it. If I DONT'T expand the TreeView
nodes, the auto refresh works nicely: my page gets refreshed every minute. As
soon as I expand a node on the TreeView, the page stops auto-refreshing.

Any ideas why this is happening?

I have acheived auto refresh using the following:

HtmlMeta meta = new HtmlMeta();
meta.HttpEquiv = "refresh";
meta.Content = ConfigurationMa nager.AppSettin gs["RefreshFrequen cy"];
Page.Header.Con trols.Add(meta) ;

Jul 24 '08 #3

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

Similar topics

1
34325
by: Lew | last post by:
Hi all, I'm trying to create a page that has a user-selectable page auto-refresh option (IE 5.5). Essentially, it's a page that contains a checkbox, when the user checks the checkbox, I'd like the page to auto-refresh every 4 seconds....if the user un-checks the checkbox, I'd like to turn off the auto refresh. The page is as follows:
3
1798
by: Woody Splawn | last post by:
I have been experimenting with Auto Slides and TreeViews and find them most usefull in Winforms. I know how to create a Treview and have it, for example, slide out from the left of my Winform but I would like to add some functionality to my slideout. I would like my TreeView to have a field above it, like you get when you click on the contents tab in the of the Visual Studio Deisgner. In the contents slideout you have a field at the...
7
22783
by: Brian | last post by:
hello, I am looking for a way to auto refresh a web page that I created, but also let the user choose to stop the auto refresh. I can not figure out how to stop the auto refresh. Any help would be appreciated. Thanks, Brian
0
3137
by: kvrdeveloper1 | last post by:
Hello all, I am populating my treeview with only 1 level of items. Upon opening my screen, I call the RefreshTreeview routine which populates the treeview just fine, and I am able to click on nodes in the treeview and populate the appropriate data accordingly. However, once I add a new record via this screen and call the same RefreshTreeview routine (which successfully populates the treeview with the appropriate items including the new...
4
2131
by: Morten Snedker | last post by:
Me.tvKunder.ForeColor = Color.FromArgb(l) changes the color of the Treeview control 'tvKunder' immidiately. Using a loop: For Each c In Me.Controls If (TypeOf c Is ListBox) Or (TypeOf c Is TreeView) Then c.BackColor = Color.FromArgb(l) c.Refresh() End If Next
2
13026
by: Mark Jerde | last post by:
VS .NET 2003, Googling, msdn searching not successful. I'm using the images of nodes of a TreeView to show the Pass/Fail results of several tests. The tests are a little slow so I would like to Refresh() between each test. This works: MyTreeView.Refresh(); .... but it causes a lot of flicker. The node text does not change. Only the TreeNode.ImageIndex changes.
0
3420
by: drop | last post by:
Hi, I am using a Treeview and I'd like to know what is the best way to refresh the children of a specific node in the treeview. I already do that using full postback, but this sends back the entire tree and it's very slow. Basically, I'd like to be able to redo a client side callback PopulateOnDemand that would reload the childrens of a node. That way, I would reduce the overhead since I would refresh only the part of the tree I need...
3
3531
by: Tor Inge Rislaa | last post by:
I have a MasterPage containing a TreeView menu. When clicking a menu item, a page is loaded into the ContentPlaceHolder. It seems like both the MasterPage and the page in the ContentPlaceHolder is refreshed when clicking the menu item. That might be how it is supposed to be, but the problem is that the menu in the masterpage returns to it's origin state where all the nodes are collapsed. Is there a way to avoid this from happening? ...
3
3616
by: lezzo | last post by:
Hi Guys, I am new to this forum and find very interesting. I need your help in one of the script. I got a MySQL table bid_amount, and i want that if some new data comes in this table and where the table data is shown on webpage, that webpage need to be auto refresh. To make it more easy to understand
0
9908
marktang
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...
0
11052
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10777
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,...
0
10379
tracyyun
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...
0
7090
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();...
0
5759
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...
0
5956
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4172
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3198
bsmnconsultancy
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...

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.