473,289 Members | 1,884 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,289 software developers and data experts.

ODS Params from User Control...?

JDC
Hi all,

I thought I understood the page lifecycle. but I guess not. I have a
couple of pages with similar GridViews and each is connected to a
ObjectDataSource. Both pages have an identical set of drop-down lists
which define the selection criteria for the grid, and the
SelectParameters of the ODS are bound to these controls.

The set of "selection" drop-down lists seemed like an ideal candidate
to convert into a UserControl. I gave this new control a set of public
string properties which return the selected value of each drop down
list, and placed the user control on each page.

Then I discovered that you can't define a public property of a user
control as the value of a SelectParameter using the ODS parameter
editor. Disappointing.

So in the GridView Selecting event I try to set the parameter values
manually, e.g:
e.InputParameters["limit1"] = myUserControl1.LimitValue;

The user control property looks like this:

public string Limit1Value
{
get { return cboLimit1.SelectedValue; }
}

All the drop-down lists have AutoPostback = false.

The problem is that whatever value I select in the lists, when I click
my "submit" button and step through the GridView Selecting event the
properties of the user control always contain the default (initial)
values of the drop-down lists.

Can anyone kindly tell me what I'm doing wrong?

Cheers, JC

May 20 '06 #1
0 880

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

Similar topics

0
by: Programmer | last post by:
Hi all I have an VB.NET object registered in a Web Page with the <object classid="http:My.dll#Name /> Now. The Question is that a want to have many params inside the object tag that are...
0
by: Mihaly | last post by:
Hello, i'm using a VC++ com+ object, it's reference in vs .net, this com object have a function that have to params, the interop com object recive Object Params and the original com object say...
2
by: ndario | last post by:
i am trying to transfer a user to another page with Server.Transfer() but i am having a problem with sending query params like this Server.Transfer("newPage.aspx?param=value"); in the PageLoad...
0
by: dario | last post by:
sometimes i put params in hyperlink, and i expect them do disappear with further requests (Server.Transfer or Response.redirect), but they stay there and mess up my logic. for example, user gets...
2
by: Coneection OLAP | last post by:
Hi: Me question is the next: I would like know how, I can do it to pass params, from a control of a page ASPX to other page ASPX, but I don't want that this params can see in the URL, ...
6
by: Praveen | last post by:
As you all know the value of input, checkbox and other "user editable" elements can be retrieved on postback via Request.Params list, if you know their ID. However, if there is a span element...
9
by: Jay | last post by:
Everywhere I go (read/browse) I see these parameters.... ByVal sender As Object, ByVal e As System.EventArgs Yet I never see them used within the function/method. Could someone tell me what they...
4
by: Jo Claes | last post by:
Hi, A friend asked me if i could help him building a lilttle website. Having 10 years of proffessional experiance in writing "non-webbased" code i thought that will not be that hard. I think...
2
by: FFMG | last post by:
Hi, I was looking at http://www.php.net/manual/en/function.call-user-func-array.php and I was wondering... Given, // -- function foo( &$params) {
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.