This is a migrated thread and some comments may be shown as answers.

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

1 Answer 87 Views
Window
This is a migrated thread and some comments may be shown as answers.
bharat kumar
Top achievements
Rank 1
bharat kumar asked on 06 Sep 2010, 06:54 PM

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.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Sep 2010, 06:18 AM
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.
Tags
Window
Asked by
bharat kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or