This may help you:
How to Pass Messages and Actions between Server and Client
http://usableasp.net/DeveloperPage.a...rAndClient.htm
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Steve Kershaw" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I need to display a seperate error page (off a try...catch block) in
> ASP.NET.
> Response.Redirect and Server.Transfer won't work in this case because
> they replace the
> old page with a new one and I want both pages to be displayed (error
> page on top of course).
>
> An alternate question is; how can I call a javascript function from an
> ASP.NET method?
> That way I can simply use the window.alert("error message here");
> javascript function.
>
> Thanks
> Steve
>