Redirect to previous view and inject a javascript alert

Posted by n1ck0s on Stack Overflow See other posts from Stack Overflow or by n1ck0s
Published on 2009-09-23T08:46:00Z Indexed on 2010/04/05 7:03 UTC
Read the original article Hit count: 215

Filed under:
|
|

Hi all,

I need to do the following:

I have a textbox, which appears in every page of the site, that allows to subscribe to a newsletter. This I've done already and the user is redirected to previous view after subscription.

I'd like to add a javascript alert to the page the user is returned to, something like "Thanks for subscribing". How can this be done?

Thanks in advance.

EDIT: Propably it's not clear from the post tags. I'm using ASP.NET MVC 2 Preview 1

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc