Forgive for my noobness... i try msgbox or even MessageBox.Show(), but none of them seems working...
Anyone got a simple code or simple sample to show? thanks a lot
Printable View
Forgive for my noobness... i try msgbox or even MessageBox.Show(), but none of them seems working...
Anyone got a simple code or simple sample to show? thanks a lot
MessageBox is a Windows Form component and can't be used in ASP.NET. If you want to display a message box (javascript alert) you can do this
VB Code:
Dim strScript As String strScript = "<script>" strScript = strScript & "alert('Test');" strScript = strScript & "</script>" Page.RegisterStartupScript("ClientScript", strScript)