bug

Posted by Surisetti.rajesh under Regular Expressions on 2/8/2010 | Views : 1568 | Status : [Member] | Replies : 2
Page.RegisterStartupScript("s1","<scriptlanguage=javascript>alert("invalid login") </script>");

in this i am getting error can any correct this ..




Responses

Posted by: Raja on: 2/8/2010 [Member] Starter

Up
0
Down
use below code

Page.RegisterStartupScript("s1", @"<script language=javascript>alert('invalid login')</script>"); 


This will work.

You had some inverted comma and space problem.

Thanks

Regards,
Raja, USA

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

Posted by: Surisetti.rajesh on: 2/8/2010 [Member] Starter

Up
0
Down
Thank u for giving reply


Regards,
Rajesh S

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

Login to post response