Pages

Thursday, December 13, 2012

How to pass '&' in QueryString?

We can use %26 for '&' symbol in QueryString,

There is another way using URL Encode

string members="mom & dad";
Response.Redirect("family.aspx?mem="+ Server.UrlEncode(members));

0 comments:

Post a Comment