473,385 Members | 2,029 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,385 software developers and data experts.

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 = ConfigurationManager.AppSettings["RefreshFrequency"];
Page.Header.Controls.Add(meta);

Jul 22 '08 #1
2 2897
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 = ConfigurationManager.AppSettings["RefreshFrequency"];
Page.Header.Controls.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 = ConfigurationManager.AppSettings["RefreshFrequency"];
Page.Header.Controls.Add(meta);

Jul 24 '08 #3

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

Similar topics

1
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...
3
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...
7
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...
0
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...
4
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...
2
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...
0
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...
3
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...
3
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...
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: 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:
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
jinu1996
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...

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.