473,830 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
ObjectDataSourc e. Both pages have an identical set of drop-down lists
which define the selection criteria for the grid, and the
SelectParameter s 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.InputParamete rs["limit1"] = myUserControl1. LimitValue;

The user control property looks like this:

public string Limit1Value
{
get { return cboLimit1.Selec tedValue; }
}

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 900

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

Similar topics

0
1109
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 not pre-difined. For example i want to have somethink like this
0
1409
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 that this params are variants. I'm traying to pass "object" variables to the params but the com object return an error or a null object, the piece of code that i'm using is: using AgenObj;
2
2024
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 method of the newPage.aspx.cs, Request.QueryString is allways null. is there any way to transfer to another page, but to recive a param on the another page. i even try with response.redirect, but it doesn't help. also, puting value in the...
0
900
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 to the page using html hyperlink with params and then clicks on button (on the new page), and in event handler i do transfer or redirect. problem is that params stay as part of url. can i do anything about this?
2
1915
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, besides I want use this params in the page, how I can do it to request this params...?? I am using C# like languaje...
6
2572
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 (for example) whose value gets updated via javascript when the user does something, that value is not made available as part of the Request.Params list. Persumably because "span" is not considered a "editable" element and it's value is not sent...
9
2462
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 mean/do please. JP
4
4261
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 here it went wrong. The only thing he want to do is integrating an external provided iframe into his website and make that multilingual using some little flags that he puts
2
2574
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
9793
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10774
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10526
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10206
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7746
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5617
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5780
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.