Share Pastebin
Guest
Private paste!

Untitled

By: a guest | Apr 27th, 2010 | Syntax: VB.NET | Size: 0.54 KB | Hits: 117 | Expires: Never
Copy text to clipboard
  1.     Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
  2.         Dim blOK As Boolean = False
  3.         If txtName.Text.Trim() = String.Empty Then
  4.             epName.SetError(txtName, "You cannot leave this blank.")
  5.             blOK = False
  6.         End If
  7.         If txtURL.Text.Trim() = String.Empty Then
  8.             epURL.SetError(txtURL, "You cannot laeve this blank.")
  9.             blOK = False
  10.         End If
  11.  
  12.         If blOK Then
  13.             ' Save the data
  14.         End If
  15.     End Sub