Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing Empty string parameter in URL

I want to pass an empty string parameter in a url. I don't know how to do it.

I am passing these parameters in the url for a grid. In the database if I using Race=''. I get the respective records. I need to pass this in the url

test.aspx?race=""
like image 618
user2498657 Avatar asked Jan 29 '14 05:01

user2498657


1 Answers

The url would look like this:

text.aspx?race=

or

text.aspx?race=&otherParam=value&etc=otherValue

Then you would have code to handle race being empty:

if(string.IsNullOrEmpty(Request.QueryString["race"]))
// handle the empty race differently
like image 155
DLeh Avatar answered Sep 22 '22 12:09

DLeh