This worked for me
string script = "<SCRIPT LANGUAGE='JavaScript'> ";
script += "alert(\" Successful " "\");";
script += "</SCRIPT>";
Page.RegisterClientScriptBlock("ClientScript", script);
Regards,
Vamsi.
On Wed, Mar 3, 2010 at 07:31, prats786 <[email protected]> wrote:
> Hi All,
>
> 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!!!!!!!
>