S
szabelin
Hi I want to pop up a little window (sort of a message
box), so I call MessageBoxA function during postback, and
I get "error on page" icon. What's the way to popup a new
window? Thanks!
public static void MessageBoxA(string message)
{
HttpContext.Current.Response.Write("<script
language='javascript'>");
string writestring = "myWindow = window.open(\"\",
\"tinyWindow\", 'toolbar,width=150,height=100');"+
"myWindow.document.write(\"" + message + "\");" +
"myWindow.document.bgColor=\"lightblue\";" +
"myWindow.document.close(); ";
HttpContext.Current.Response.Write(writestring);
HttpContext.Current.Response.Write("</script>");
}
box), so I call MessageBoxA function during postback, and
I get "error on page" icon. What's the way to popup a new
window? Thanks!
public static void MessageBoxA(string message)
{
HttpContext.Current.Response.Write("<script
language='javascript'>");
string writestring = "myWindow = window.open(\"\",
\"tinyWindow\", 'toolbar,width=150,height=100');"+
"myWindow.document.write(\"" + message + "\");" +
"myWindow.document.bgColor=\"lightblue\";" +
"myWindow.document.close(); ";
HttpContext.Current.Response.Write(writestring);
HttpContext.Current.Response.Write("</script>");
}