473,395 Members | 1,335 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,395 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 885

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.