how can i fetch the value from querystring to a textbox

from a search engine fetch user get redirected to contact page but how can i get that value in textbox from querystring so after submiting form i can understand that customer is contacting for which search item
devilsurajAsked:
Who is Participating?
 
rachitkohliConnect With a Mentor Commented:
You can read the URL by any of the following methods, whichever suits you. Then through some string manipulation you read what you need.

HttpContext.Current.Request.Url
Request.RawUrl (will return exact URL)
0
 
P_RamprathapCommented:
Please try
Textbox1.text = Request("<querystringtext>");
 
Thanks
P.Ramprathap
0
 
Anurag ThakurTechnical ManagerCommented:
in c# use this
Textbox1.text = Request.QueryString["KeyName"].ToString();
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.