.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Hello Praveen thanks for reply, but can u give me an example on it

Posted By: Nabin     Posted Date: August 24, 2009    Points:2   Category :ASP.Net
Please send an example on it with sample code

Responses
Author: Praveen             
Posted Date: August 25, 2009     Points: 5   

Hi,
For which one you want reply or sample code? Is it for UrlEcode? if yes here is the one


for encode the URL
Server.URLEncode("http://www.Mysite.com"?id="abcdef+34*")

For Decode the URL
String sDecodedString = Server.UrlDecode(YourString);



Author: Nabin             
Posted Date: August 27, 2009     Points: 5   

In the product page i m sending page address with the required id like that:-
Response.Redirect("product_detail.aspx?cid=" + intCid + "&prodid=" + intProdid);

in the product detail page m getting that ids like that.so how can i apply that server.URLRncode and Server.URLDecode to this. please help

intCid = int.Parse(Request.QueryString["cid"].ToString());
intprodId = int.Parse(Request.QueryString["prodid"].ToString())



thanks
Nabin



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend