I have a aspx page. My code behind is in aspx.vb
I need to invoke the DB and compare the values and if the values are
not equal then i have to pop up a alert box.
I got the values and the comparision is done. I am unable to call the
alert box through aspx.vb.
1) Is there any way to directly pop up a message box
2) Is it possible to call a javascript through aspx.vb. If yes can u
give me a hint on how to call?
Can any one help me on this regard,
This would be of great help!!!!!!!
Page.RegisterStartupScript
(
"ScriptDescription", _
"<script type=""text/javascript"">alert('Login Failed. " & _
"Please try again');</script>"
)
string script = "<SCRIPT LANGUAGE='JavaScript'> ";
script += "alert(\" Successful " "\");";
script += "</SCRIPT>";
Page.RegisterClientScriptBlock("ClientScript", script);
Regards,
Vamsi.