CSS Formatting disappears after JavaScript Alertbox clicked in aspx page

Posted by Lokeshbasana under ASP.NET on 3/31/2009 | Views : 3214 | Status : [Member] | Replies : 1
Using Master pages in asp.net

Gridview Itemtemplate when i was clicking Button( Button is in command Argument)

protected void imgbtnEditReport_Command(object sender, CommandEventArgs e)
{
string createdby= e.CommandName.ToString();

if(createdby==usrname)
{
.....
}
else
{
Response.Write("<script>alert('You have no Permission to Edit this Report')</script>");
}

when this Alert is calling, the page of the css style is changing
changing font-size, font-family...

how to solve this problem please send me the reply
Thank u




Responses

Posted by: Vuyiswamb on: 3/31/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
In your Alert box please close it with a semicolon like this

Response.Write("<script>alert('You have no Permission to Edit this Report'); </script>"); 


Thank you

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Lokeshbasana, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response