Question : Popup window inside update panel

Hi All,
I have an aspx page with ajax controls and code behind page. I am using a java script for open a popup window from code behind. This is working fine. But I want to open this window inside the update panel rather than open as a new window. I want to use this popup window repeatedly. So I can't use Model Popup control. Here is the code.

Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
ASPX
    
        
CODE BEHIND if(Page.IsPostBack){ System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(@""); ScriptManager.RegisterStartupScript(this.UP1, UP1.GetType(), "controlJSScript", sb.ToString(), false); }

Answer : Popup window inside update panel

Sorry, try this
1:
2:
3:
4:
5:
6:
7:
System.Text.StringBuilder sb = new System.Text.StringBuilder();
string features = "dialogHeight:100px;"
        + "dialogWidth:300px;center:yes;edge:raised;"
        + "help:no;resizable:no;scroll:yes;status:no;";
string target = "WebForm1.aspx?";
sb.Append(@"window.showModalDialog('" + target + "','','" + features + "');");
Page.ClientScript.RegisterStartupScript(Page.GetType(), "controlJSScript", sb.ToString(), true);
Random Solutions  
 
programming4us programming4us