Solved

how can i fetch the value from querystring to a textbox

Posted on 2008-10-07
3
334 Views
Last Modified: 2008-10-08
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
0
Comment
Question by:devilsuraj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Expert Comment

by:P_Ramprathap
ID: 22666535
Please try
Textbox1.text = Request("<querystringtext>");
 
Thanks
P.Ramprathap
0
 
LVL 14

Accepted Solution

by:
rachitkohli earned 500 total points
ID: 22666539
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
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22666551
in c# use this
Textbox1.text = Request.QueryString["KeyName"].ToString();
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question