Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 2nd, 2009, 06: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/
Reply With Quote
  #2 (permalink)  
Old January 2nd, 2009, 11:01 AM
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 Send a message via Skype™ 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"
Reply With Quote
The Following User Says Thank You to msellers For This Useful Post:
jminatel (January 2nd, 2009)
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04: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 09:44 AM
Replace Character " fosca XSLT 1 November 11th, 2004 03:14 PM
request.querystring() , request.form() alyeng2000 ASP.NET 1.0 and 1.1 Basics 1 December 29th, 2003 11:07 PM



All times are GMT -4. The time now is 07:21 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.