Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design 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 April 7th, 2004, 04:29 AM
Authorized User
 
Join Date: Apr 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datagrid Variable to another Datargrid

Hi again!

I have created a template column to attain variables which I want to pass over to another page. I want these variables to be placed into the WHERE clause of my sql, for example if im passing over the variables 'group' and 'qtr' the where clause will look something like:

WHERE wis_group = @group
AND wis_qtr = @qtr

I then want to place the data into another datagrid. What do I need to do for the second page to recognise the variables? Do they need to placed into a data reader? If so could someone help out with the kind of thing I need to do?

Thanks In advance, Luke

Yeeeeeha cowboy!
__________________
Yeeeeeha cowboy!
 
Old April 7th, 2004, 10:03 AM
Authorized User
 
Join Date: Apr 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Solved this problem by using QueryString like so in the SQL Command.

WHERE SUBSTRING(wis_group,1,2) in ( '" + Request.QueryString("group") +"') and wis_quarter = '"+ Request.QueryString("qtr") +"'

Just in case someone needs this!

Yeeeeeha cowboy!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Object variable or With block variable not set I_Chappers ASP.NET 2.0 Basics 3 June 26th, 2008 04:15 PM
ASSIGNING A JAVA SCRIPT VARIABLE TO A XSL VARIABLE SOMANATHAN10 XSLT 1 February 21st, 2007 04:26 AM
assign javascript variable to asp variable manjunath_c_k Classic ASP Basics 1 September 14th, 2006 07:35 AM
Object variable or With block variable not set tparrish VS.NET 2002/2003 3 May 22nd, 2005 07:40 AM





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