You can use MsgBox -- just like in VB6.
CMIIW : It's only work in Microsoft Visual Studio Designer, not in IIS.
I searched in Google how to create Msgbox and I found it.
Public Sub UserMsgBox(ByVal F As Object, ByVal sMsg As String)
Dim sb As New StringBuilder()
Dim oFormObject As System.Web.UI.Control = Nothing
Try
sMsg = sMsg.Replace("'", "\'")
sMsg = sMsg.Replace(Chr(34), "\" & Chr(34))
sMsg = sMsg.Replace(vbCrLf, "\n")
sMsg = "<script language='javascript'>alert('" & sMsg & "');</script>"
sb = New StringBuilder()
sb.Append(sMsg)
For Each oFormObject In F.Controls
If TypeOf oFormObject Is HtmlForm Then
Exit For
End If
Next
oFormObject.Controls.AddAt(oFormObject.Controls.Count, New LiteralControl(sb.ToString()))
Catch ex As Exception
End Try
End Sub
Protected Sub CmdPrint_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CmdPrint.Click
If CmbCCY.SelectedIndex <= 0 Then
UserMsgBox(Me, "Currency ID is not Selected.")
CmbCCY.Focus()
Exit Sub
End If
End Sub
Thank,
Kusno.