how to show a message box in asp.net
ASP.NET
4
Posts
4
Posters
0
Views
1
Watching
-
if you r using visual studio 2005 . add referance of system.windows.form then use messagebox.show("");
regards imran khan
-
Write the following code in a class file(.vb or .cs) and the from the application call classname.CreateMessageAlert(Me,"Please Login","clientScript") Public Class ClsMsgBox Public Shared Sub CreateMessageAlert(ByVal aspxPage As System.Web.UI.Page, ByVal strMessage As String, ByVal strKey As String) Dim strScript As String = "" strScript &= "alert(""" & strMessage & """);" strScript &= "" If (Not aspxPage.IsStartupScriptRegistered(strKey)) Then aspxPage.RegisterStartupScript(strKey, strScript) End If End Sub End Class Happy Programming!!! Tonmoy Roy