Guest User

Untitled

a guest
Feb 18th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. If Request.QueryString IsNot Nothing AndAlso _
  2. Request.QueryString.GetKey("id") IsNot Nothing Then
  3. DeleteVehicle(Request.QueryString.GetKey("id"))
  4. End If
  5.  
  6. System.NullReferenceException: Object reference not set to an instance of an object.
  7.  
  8. Source Error:
  9.  
  10. Line 16: If Request.QueryString IsNot Nothing AndAlso _
  11. Line 17: Request.QueryString.GetKey("id") IsNot Nothing Then
  12.  
  13. Source File: G:projects_backupToaabToaaadminvehicleview.aspx.vb Line: 16
  14.  
  15. If Request.QueryString("id") IsNot Nothing OrElse Request.QueryString("id") IsNot String.Empty Then
  16. DeleteVehicle(Request.QueryString("id").ToString)
  17. End If
  18.  
  19. If String.IsNullOrEmpty(Request.QueryString("id")) = False Then
  20. DeleteVehicle(Request.QueryString("id"))
  21. End If
  22.  
  23. If Request.QueryString("id") IsNot Nothing
  24. AndAlso String.IsNullOrEmpty(Request.QueryString("id")) = False Then
  25. DeleteVehicle(Request.QueryString("id").ToString)
  26. End If
  27.  
  28. Request.Params.AllKeys.Contains("id")
Add Comment
Please, Sign In to add comment