Hi,
in the aspx HTML-source you could code
<html>
<head>
<script language=3D"Javascript">
var msg =3D '<%=3DsServerMessage%>';
if (msg !=3D '') alert(msg);
</script>
...
Where the sServerMessage variable is a public or protected get-property
of the code-behind class of the page.
Hope this helps
> -----Original Message-----
> From: Annie Wang [mailto:hwang@m...]
> Sent: donderdag 31 mei 2001 0:43
> To: ASPX_Professional
> Subject: [aspx_professional] How to pop up a modal dialog in ASP.Net?
>
>
>
> I want to pop up a modal dialog window to display error
> message when
> there is any error happens during server-side processing. I
> was able to do
> it in ASP by embed client-side JScript code in server-side
> code. But I am
> how sure how to handle this in ASP.Net.