Advertisement
Guest User

Untitled

a guest
Sep 18th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.52 KB | None | 0 0
  1. <%@ language="C#" %>
  2.  
  3. <%
  4.  
  5.     string jontycat = "Jonty built this in ASP.NET!";
  6.     string requestURL;
  7.     string secondParam;
  8.    
  9.     requestURL = Request.QueryString["param"];
  10.     secondParam = Request.QueryString["two"];
  11.    
  12.     if(requestURL == null && secondParam == null)
  13.     {
  14.         Response.Write("Both params are empty, fill 'em");
  15.     }
  16.     else
  17.     {
  18.         if(requestURL == null || secondParam == null)
  19.         {
  20.             Response.Write("One of your params are null");
  21.         }
  22.         else
  23.         {
  24.             Response.Write(jontycat + requestURL + secondParam);
  25.         }
  26.     }
  27. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement