Click here to Skip to main content
11,806,590 members (66,162 online)
Click here to Skip to main content
Alternatives (1)

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

, 20 Nov 2011 CPOL 36.9K 17
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 | 2.8.151002.1 | Last Updated 20 Nov 2011
Article Copyright 2011 by mgrks
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid