Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to pass harsha & Malleswaram in Querystring


Thanks and Regards
Harsha
Posted

use URL Encoding and decoding
In c# use as follow:
string url = HttpUtility.UrlEncode("http://www.abc.com/a?q=b");
 
Share this answer
 
Comments
Harsha Dev 3-Jan-13 7:30am    
Thanks :)
Raman Thakur 7-Jan-13 23:03pm    
ywc :)
use Server.UrlEncode,

here it is an example...
VB
Dim MyURL As String
MyURL = "http://www.contoso.com/articles.aspx?title=" & Server.UrlEncode("ASP.NET Examples")

Response.Write( "<a href=" & MyURL & "> ASP.NET Examples </a>")

Happy Coding!
:)
 
Share this answer
 
Comments
Harsha Dev 3-Jan-13 7:30am    
Thanks :)
Aarti Meswania 3-Jan-13 7:31am    
Welcome, dear! :)
Glad to help you! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900