Auto refresh spoilt by TreeView

Discussion in 'ASP .Net' started by Amir Tohidi, Jul 22, 2008.

  1. Amir Tohidi

    Amir Tohidi Guest

    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);
    Amir Tohidi, Jul 22, 2008
    #1
    1. Advertising

  2. Amir Tohidi

    bruce barker Guest

    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);
    >
    >
    >
    bruce barker, Jul 22, 2008
    #2
    1. Advertising

  3. Amir Tohidi

    Amir Tohidi Guest

    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);
    > >
    > >
    > >
    Amir Tohidi, Jul 24, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. herve maillard
    Replies:
    0
    Views:
    537
    herve maillard
    Jun 26, 2003
  2. Jordan Marton
    Replies:
    2
    Views:
    499
    Yan-Hong Huang[MSFT]
    Aug 1, 2003
  3. Marcus

    auto refresh page or frame

    Marcus, Apr 1, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    4,065
    Marcus
    Apr 1, 2004
  4. =?Utf-8?B?V2FyYW4=?=

    Auto-Suggested Textbox like google auto suggest

    =?Utf-8?B?V2FyYW4=?=, Apr 20, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    8,512
    inrakeshworld
    Jul 27, 2007
  5. linkswanted
    Replies:
    1
    Views:
    902
Loading...

Share This Page