Quick and Dirty ASP.NET Message Box
Category:
C#, VB.NET, ASP.NETType:
SnippetsDifficulty:
BeginningAuthor:
Intelligent Solutions Inc.Version Compatibility: ASP.NET
More information:
In ASP.NET, you cannot use the MessageBox class or MsgBox function like you can in a windows.forms application, but you can emulate this functionality by streaming out a javascript alert instruction. This function can be dropped into any ASP.NET code behind module and used for this purpose.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: