Solved

how can i fetch the value from querystring to a textbox

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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.
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.

757 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