0

i am using query string method to pass the value form one page to another. the code is Response.Redirect("~/Default.aspx?FirstName=" +Server.UrlPathEncode(TextBox1.Text) + "&LastName=" +TextBox2.Text.Replace(" ","%20") + ""); but the value is not hiding on address bar. i can value on the address bar on next page.

4
  • the value is not hiding on address bar - I don't understand that. Do you mean it is not showing? Commented Sep 7, 2012 at 10:36
  • i means this is showing the value in address bar. Commented Sep 7, 2012 at 10:38
  • and i want to hide the passing value in address bar. Commented Sep 7, 2012 at 10:38
  • Well, you are passing the values on the URL - you can't "hide" them. You need to change your design if you want to pass values between pages and not use the URL. Commented Sep 7, 2012 at 10:39

2 Answers 2

1

The question is not clear for me, but if you have problem with passing parameters between pages and with showing/hiding this parameters then you should read about GET and POST method. Here is similar problem to yours: GET and POST in asp.net

Sign up to request clarification or add additional context in comments.

Comments

1

If your only goal is to have a way to maintain values across pages, then you can use Sessions.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.