Click here to Skip to main content
13,446,805 members (40,260 online)
Click here to Skip to main content
Alternatives (1)
Add your own
alternative version


17 bookmarked
Posted 16 Nov 2011

How to show the message and redirect to other page in ASP.NET

, 20 Nov 2011
We can simply do this by calling JavaScript in code behind.


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

22 Nov 2011
Nicolò Beltrame
public static void MsgAlert(string message, string optURL) { Page page = (Page)HttpContext.Current.Handler; message = message.Replace("'", "\\'"); message = message.Replace("\r", "\\r"); message = message.Replace("\n", "\\n"); ...


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

India India
No Biography provided

| | Privacy | Terms of Use | Mobile
Web01-2016 | 2.8.180318.2 | Last Updated 20 Nov 2011
Article Copyright 2011 by mgrks
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid