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);
|