Skip to content

Instantly share code, notes, and snippets.

@KevinRagsdale
Last active August 29, 2015 14:07
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 KevinRagsdale/9d125457c51ec7f2453b to your computer and use it in GitHub Desktop.
Save KevinRagsdale/9d125457c51ec7f2453b to your computer and use it in GitHub Desktop.
<%@ Page Language="VB" %>
<script runat="server">
Protected Sub Page_Load(sender As Object, e As EventArgs)
Dim lcUserAgent As String = Request.UserAgent.ToString()
If lcUserAgent.Contains("Visual Search Pro Demo") = False Then
Response.Write("Sorry. Not the User-Agent I expected.")
Else
Response.Write("Yay! You selected the correct User-Agent!")
End If
End Sub
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment