Solved

how can i fetch the value from querystring to a textbox

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need a complete list of ASP.NET page load events 3 29
Syntax error 9 45
Resolve Dependency Issues 4 48
Not showing page correctly 3 31
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now