Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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
 
Old May 20th, 2005, 05:25 PM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to recive the hyper link passed value in visua

how to recive the hyper link passed value in visual asp.net code behind?

Hi experts. I have diffculty reciving hyper link passed value in visual studio.net code behind asp.net. I
do not know how to recive this value and use it select statment.i be happy if some expert tell me
how i can use visual studio.net 2003 wizard to create that code for me.Thank

 
Old May 20th, 2005, 08:14 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

mypage.aspx?variableName=10

someVariable = Request.QueryString("variableName")

-Peter
 
Old May 21st, 2005, 01:45 AM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by planoie
 mypage.aspx?variableName=10

someVariable = Request.QueryString("variableName")

-Peter
Thank u for u reply. should i place the code inside mypage.aspx.vb? if i want to use this passeved value inside select statement should i just use the somevariable name?
one more thing is there a wozard in visual studio.net to create the hyper link for me ?Furthermore,is there a way that visual studio.net 2003 create these code automatically usnig wizards...i be happy to get some help here.thanks
 
Old May 21st, 2005, 10:28 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Re: VS wizards: No, you have to code it yourself. Wizards can't do everything.


You need to construct the SQL query manually and put the variable values where you want them:

someVariable = Request.QueryString("variableName")
strSql = "SELECT * FROM MyTable WHERE field=" & someVariable
'execute strSql

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyper Terminal Problems compad Beginning VB 6 6 August 6th, 2007 01:15 AM
hyper link to gridview samir_katore .NET Framework 2.0 6 August 20th, 2006 10:38 PM
send & recive mails from exchange & lotus sever zaheersharief Pro VB 6 1 May 16th, 2005 06:55 AM
combo box insted of hyper link knight PHP Databases 2 March 29th, 2005 08:45 AM
Migration hyper File to SQL Server chanour2003 SQL Server 2000 0 June 19th, 2004 06:24 AM





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