the style changed problem by alert message box
-
I found that in my webpage, once the alert messagebox (as follows) is shown then some control styles (such as, location, font size and so on) are changed in a unexpected way. what is the reason then? anyone suffered this problem before? Response.Write("<script>alert(sth is here!')</script>");
-
I found that in my webpage, once the alert messagebox (as follows) is shown then some control styles (such as, location, font size and so on) are changed in a unexpected way. what is the reason then? anyone suffered this problem before? Response.Write("<script>alert(sth is here!')</script>");
I think this is not good practice to write the response. Rather use
this.ClientScript.RegisterStartupScript(this.GetType(), "myscript", "alert('sth is here!')", true);
RegisterStartupScript
is there to write javascript output to the client, so why use Response.Write. :)Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.