Skip to content

Instantly share code, notes, and snippets.

@Raynes
Created November 13, 2009 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynes/234248 to your computer and use it in GitHub Desktop.
Save Raynes/234248 to your computer and use it in GitHub Desktop.
Sub TakeVacation()
Dim Vacation As String
Dim Approved As String
If Approved = "Yes" Then
Vacation = "Is Approved"
Else : If Approved = "No" Then
Vacation = "Denied"
End If
End If
ClientScript.RegisterStartupScript(Me.GetType(), "Your Boss"", String.Format("alert('Your Vacation Request is {0}');", Approved.Replace("'", "\'")), True)
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment