Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 2nd, 2009, 07:54 AM
Registered User
 
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default google Response.Write(Request.QueryString("q"))

http://www.ahsapdekorasyonbul.com/arama/1.jpg


I’ll redirect to google for the above picture, for example when I search google for asp.net, this asp.net keyword shows at address bar as . QueryString("q") and asp.net comes up first at search results. I want to display “you’ve accessed our site with . QueryString("q") keyword” on the site clicked through google . QueryString("q") I mean when asp.net first site is clicked. Is this possible and if possible how can I code with asp and asp.net?
http://www.paslanmazbul.net
http://www.evdenevenakliyatbul.com/
http://www.ahsapdekorasyonbul.com/
  #2 (permalink)  
Old January 2nd, 2009, 12:01 PM
Wrox Author
 
Join Date: Jul 2008
Location: Des Moines, IA, USA.
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers
Default

If you are looking at doing this on your own page, after someone has clicked a link from Google you could look at the Referrer information that is available, as that should show the google search URL, you could then get the q querystring value out of that url.

One word of caution, I would HTML encode at minimum the content of the querystring before using a response.write for security.
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
The Following User Says Thank You to msellers For This Useful Post:
jminatel (January 2nd, 2009)


Similar Threads
Thread Thread Starter Forum Replies Last Post
pgs. 506-512 "r" ? Rachel BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 January 2nd, 2009 05:02 AM
preserving " for later use in testing in xslt akentanaka XSLT 1 October 14th, 2008 03:59 AM
replacing " gantait XSLT 1 March 4th, 2007 10:44 AM
Replace Character " fosca XSLT 1 November 11th, 2004 04:14 PM
request.querystring() , request.form() alyeng2000 ASP.NET 1.0 and 1.1 Basics 1 December 30th, 2003 12:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.