473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Datasource parameters?

Ben
I'm having difficulty getting a parameter value used in an Object Data
Source that populates a GridView control. Here's the overview:

GridView 1 has a button on it which the user clicks to drill down into data
subordinate to the record they're looking at. When the button is clicked,
GridView2 is supposed to populate with data from another table, filtered by
a field on the row in GridView1 whose button was clicked.

Right now the only way I can get it working is to have the key field for
GridView2 stored as a Session variable (done in the RowCommand event of
GridView1 when the button is clicked), and then tell the Object Data Source
for GridView2 that the key is that session variable (that's done when
configuring the object data source).

Is there a way to tell the Object Data Source to get its value from, say, a
property of the Page? According to the dropdown list in the Configure Data
Source / Define Parameters window, my only choices are "None", "Cookie",
"Control", "Form", "Profile", "QueryString", and "Session". I tried 'Form',
using a public property to store the parameter value, but couldn't get that
to work.

Other than Session, is there another way?

Thanks.
Ben
Jan 4 '07 #1
0 713

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Slonjo | last post by:
I don't know if this has been addressed in some other form/forum but we tried what we thought was everything. I apologize if i'm being redundant. We build reports like so when they require...
2
by: Jake S | last post by:
Hi all, Is it possibele to set the datasource of a dropdown list to a datareader? When I try to the only column I receive is a column populated by the datasource name repeated the amount of...
2
by: Mo | last post by:
Hi, I have a page that is split into two frames: top and bottom. The top page is a search parameters page and the bottom is the results page; which holds the datagrid. The search page sends the...
1
by: Versteijn | last post by:
Hello all I want to define a crystal report and assign the stored procedure GetOpenQuestions() as it's datasource and provide a set of parameters. How does this work? My target situation is...
2
by: Not Me | last post by:
Hi, I'm a little confused with working with parameters for a datasource - specifically when it comes to naming them. For example <asp:parameter Name="surname" type="String" /> this...
6
by: WebBuilder451 | last post by:
I have a drop down list of saved searches for a user and i'm trying to use the datasource control to populate the ddl. The select value in the storedproc is the user.Identity.name. How can i use...
4
by: SHEBERT | last post by:
Here is an example of a SortedList that works as a datasource to the ComboBox and a generic SortedList<that does not works as a datasource to the ComboBox. Why? If I use List and generic List<>,...
1
by: Jim McGivney | last post by:
When configuring a DataSource for a control in VS'05, when formulating the WHERE clause, one of the options is to use a Query String to supply the parameters. Is this the Query String that is used...
0
by: johnnyD | last post by:
I am creating a page which displays a customers billing history. As such it uses a datasource which queries the billing table. This works fine, and outputs desired information I need. I need the...
2
by: =?Utf-8?B?QnJldA==?= | last post by:
I am a VB and SQL developer but new to ASP.Net world. I have a SQL Datasource that returns an ID of the Current user. I've setup a second SQL Datasource that performs a SELECT statement to a table...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.