Ajax Refresh

Discussion in 'ASP .Net' started by Miro, Nov 18, 2009.

  1. Miro

    Miro Guest

    Hi,

    I am having a strange problem.

    I have an option listbox and some text beside it ( some labels ).

    When you select the option from the listbox, this triggers the ajax panel
    where the labels are inside of to update the data on the labels.

    However, if i click on the listbox and do not move my mouse, the ajax panel
    does not refresh the screen until I move the mouse just a little bit.

    Has anyone else had this happen and know of a workaround?
    Seems to be I am having the same issue posted here:
    http://forums.asp.net/t/1117431.aspx

    Thanks...
    Miro, Nov 18, 2009
    #1
    1. Advertising

  2. Miro

    Vijay Guest

    Use SelectedIndexChanged event. If the problem persist try to postback
    using javascript (ie)__dopostback.
    If you want to postback asynchronously. Please use this javascript code.

    <script type="text/javascript" language="javascript">
    function Postback() {
    doPostBackAsync('txtNew', 'TextChanged');
    }

    function doPostBackAsync(eventName, eventArgs) {
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    if (!Array.contains(prm._asyncPostBackControlIDs, eventName)) {
    prm._asyncPostBackControlIDs.push(eventName);
    }
    if (!Array.contains(prm._asyncPostBackControlClientIDs,
    eventName)) {
    prm._asyncPostBackControlClientIDs.push(eventName);
    }
    __doPostBack(eventName, eventArgs);
    }
    </script>


    I've used this coding to search items in a listbox asynchronously when it
    enter the characters in a textbox.

    Vijay chandar
    ASP.NET developer and SQL Server Admin

    "Miro" <> wrote in message
    news:...
    > Hi,
    >
    > I am having a strange problem.
    >
    > I have an option listbox and some text beside it ( some labels ).
    >
    > When you select the option from the listbox, this triggers the ajax panel
    > where the labels are inside of to update the data on the labels.
    >
    > However, if i click on the listbox and do not move my mouse, the ajax
    > panel does not refresh the screen until I move the mouse just a little
    > bit.
    >
    > Has anyone else had this happen and know of a workaround?
    > Seems to be I am having the same issue posted here:
    > http://forums.asp.net/t/1117431.aspx
    >
    > Thanks...
    >
    Vijay, Nov 18, 2009
    #2
    1. Advertising

  3. Miro

    Miro Guest

    Thanks Vijay,

    I will have a look at it and give it a try.

    Its wierd, exact same website viewd from the machine beside me does not have
    that problem.

    Miro

    "Vijay" <> wrote in message
    news:...
    > Use SelectedIndexChanged event. If the problem persist try to postback
    > using javascript (ie)__dopostback.
    > If you want to postback asynchronously. Please use this javascript code.
    >
    > <script type="text/javascript" language="javascript">
    > function Postback() {
    > doPostBackAsync('txtNew', 'TextChanged');
    > }
    >
    > function doPostBackAsync(eventName, eventArgs) {
    > var prm = Sys.WebForms.PageRequestManager.getInstance();
    > if (!Array.contains(prm._asyncPostBackControlIDs, eventName)) {
    > prm._asyncPostBackControlIDs.push(eventName);
    > }
    > if (!Array.contains(prm._asyncPostBackControlClientIDs,
    > eventName)) {
    > prm._asyncPostBackControlClientIDs.push(eventName);
    > }
    > __doPostBack(eventName, eventArgs);
    > }
    > </script>
    >
    >
    > I've used this coding to search items in a listbox asynchronously when it
    > enter the characters in a textbox.
    >
    > Vijay chandar
    > ASP.NET developer and SQL Server Admin
    >
    > "Miro" <> wrote in message
    > news:...
    >> Hi,
    >>
    >> I am having a strange problem.
    >>
    >> I have an option listbox and some text beside it ( some labels ).
    >>
    >> When you select the option from the listbox, this triggers the ajax panel
    >> where the labels are inside of to update the data on the labels.
    >>
    >> However, if i click on the listbox and do not move my mouse, the ajax
    >> panel does not refresh the screen until I move the mouse just a little
    >> bit.
    >>
    >> Has anyone else had this happen and know of a workaround?
    >> Seems to be I am having the same issue posted here:
    >> http://forums.asp.net/t/1117431.aspx
    >>
    >> Thanks...
    >>
    Miro, Nov 19, 2009
    #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. brian lanning
    Replies:
    0
    Views:
    574
    brian lanning
    Jul 29, 2003
  2. Per Magnus L?vold
    Replies:
    1
    Views:
    5,087
    John C. Bollinger
    Oct 8, 2004
  3. minnie
    Replies:
    1
    Views:
    670
    Andrew Thompson
    Dec 13, 2006
  4. Pkenty
    Replies:
    0
    Views:
    378
    Pkenty
    May 28, 2004
  5. Jawahar Rajan
    Replies:
    1
    Views:
    277
    Adrienne
    Oct 1, 2003
Loading...

Share This Page