Can't able to close rad window on ScriptManager.RegisterStartupScript

2 posts, 0 answers
  1. bharat kumar
    bharat kumar avatar
    53 posts
    Member since:
    Jan 2010

    Posted 06 Sep 2010 Link to this post


    Hi,
    i want to close the rad window in master page Pre_Render event but its not working...

    protected void Page_PreRender(object sender, EventArgs e)
        {
            ScriptManager.RegisterStartupScript(this, this.GetType(), "CLOSE", "window.close();", true);
        }

    please help ...how i can close the window in master page of rad window if session expires.

    waiting for your reply.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Sep 2010 Link to this post

    Hello Bharat,


    First, get reference to RadWindow client side object and use the close() method to close the window.

    The documentations will be of help in getting more idea about client side methods regarding RadWindow/RadWindowManager.
    RadWindowManager Methods
    RadWindow Methods
    Using RadWindow as a Dialog



    -Shinu.
Back to Top