Hi, I am displaying message in c# like this
Response.Write( "<script>al ert( 'Sum is 50' )</script>");
it is working fine,but it is not working when we take variable in aleart like
int a=25;
int b=25;
int sum=a+b;
Response.Write( "<script>alert( sum)</script>");
this is not working.
anyone can solve my problem.
Shailesh Kumar
Response.Write( "<script>al ert( 'Sum is 50' )</script>");
it is working fine,but it is not working when we take variable in aleart like
int a=25;
int b=25;
int sum=a+b;
Response.Write( "<script>alert( sum)</script>");
this is not working.
anyone can solve my problem.
Shailesh Kumar
Comment