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(str ing message)
{
HttpContext.Cur rent.Response.W rite("<script
language='javas cript'>");
string writestring = "myWindow = window.open(\"\ ",
\"tinyWindow \", 'toolbar,width= 150,height=100' );"+
"myWindow.docum ent.write(\"" + message + "\");" +
"myWindow.docum ent.bgColor=\"l ightblue\";" +
"myWindow.docum ent.close(); ";
HttpContext.Cur rent.Response.W rite(writestrin g);
HttpContext.Cur rent.Response.W rite("</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(str ing message)
{
HttpContext.Cur rent.Response.W rite("<script
language='javas cript'>");
string writestring = "myWindow = window.open(\"\ ",
\"tinyWindow \", 'toolbar,width= 150,height=100' );"+
"myWindow.docum ent.write(\"" + message + "\");" +
"myWindow.docum ent.bgColor=\"l ightblue\";" +
"myWindow.docum ent.close(); ";
HttpContext.Cur rent.Response.W rite(writestrin g);
HttpContext.Cur rent.Response.W rite("</script>");
}
Comment