Solved

how can i fetch the value from querystring to a textbox

Posted on 2008-10-07
3
330 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

776 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