Stop Parent Page Refreshing

2 posts, 0 answers
  1. Gangadhar
    Gangadhar avatar
    1 posts
    Member since:
    Jul 2014

    Posted 01 Jul 2014 Link to this post

    Hi ,

    I have a parent page  RequestsBrowse.aspx . The page containing a gridview as per attached Document . The gridview contains one column with a image button which will call a javascript method and which opens a radwindow named Actioncreate.aspx .The parent page will refresh every 60 seconds . 

    Issue : While clicking on Image button , Radwindow(Actioncreate.aspx) opened . But after 60 seconds , the parent page refreshed and the child radwindow automatically closed . I want to make the Parent window stop refreshing and dont want to close the radwindow.

    Code :
    ----------
    <a  class="HyperlinkValue" href='Javascript: AddAction("<%# DataBinder.Eval(Container.DataItem, "RequestNumber") %>$<%# DataBinder.Eval(Container.DataItem, "RQSPrimaryId") %>$<%# DataBinder.Eval(Container.DataItem, "openflag") %>$0","<%# DataBinder.Eval(Container.DataItem, "Urgency") %>","<%# DataBinder.Eval(Container.DataItem, "Worker") %>","<%# DataBinder.Eval(Container.DataItem, "WorkOrder") %>");'>
    <img border="0" alt='Add Action' title='Add Action' src='images/addaction.gif'>

    Refreshing Parent page code :
    ----------------------------------------
    if ((rsi.dispatchesRefresh != 0)&&(hdnStopAutoRefresh.Value=="0"))
                                    Response.AddHeader("Refresh", rsi.dispatchesRefresh.ToString());

    Please reply back .

    Thanks and Regards
    Ganga







  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Jul 2014 in reply to Gangadhar Link to this post

    Hi Gangadhar,

    You can use RadWindow's VisibleOnPageLoad property to show/hide RadWindows via AJAX/Postback. The default behavior is the changes made on the client side will not persist after postback, because of that RadWindow is closing. In your sceanrio try to use this approach.

    Please provide your code if it doesn't help.
    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top