Tech Off Thread

4 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

ASP.NET 2.0 - ImageButton - strange issue

Back to Forum: Tech Off
  • User profile image
    Anbuselvan

    Hi Everyone,

    I am facing one strange issue with the ASP.NET 2.0 ImageButton control.

    Issue:
    --------
    ImageButton is loosing it's OnClick event when the system gone to idle state.

    UI implementation:
    ------------------------
    -> I have an ImageButton with OnClick event.
    -> The session timeout is 20 minutes.
    -> One Javascript timer with 10 minutes time interval is calling a function to keep the session alive.

    It is working fine but failed in the following scenario.

    Test Scenario:
    ------------------
    -> Enter some data in the web form.
    -> Lock and keep the system idle for 30 minutes.
    -> Unlock the system and click the image button to submit the data.

    Amazingly, it is just reloading the page even the IsPosBack is true, but not invoking the OnClick event.

    If I use ASP Button instead ASP ImageButton it is posting the data and invoking the OnClick event to save the data.

    I hope I explained well.

    Please share with me if you have any solution.

    Thanks in advance,
    Anbuselvan

  • User profile image
    ZippyV

    This looks more like a browser issue than an issue with asp.net. Have your tried it with Firefox or Opera?

  • User profile image
    stevo_

    The javascript 'keep alive' timer sounds dodgy. Hows is it keeping the session alive?

  • User profile image
    odujosh

    Curious are you doing an AJAX callback? Its a tough issue to dissect because the page lifecycle can be delicate at times when you try to cercumvent certain events.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.