473,507 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataList - Firing an event for a drop down list box in the header

I'm having a problem with the DataList control, my situation is as follows...

I have a DataList with a Drop Down List Box (DDLB) in the header, this DDLB
is set to AutoPostBack = True. When the selected value in the DDLB is changed
the page does post back however no event is fired, I was expecting the
DataList.ItemCommand to be fired but it doesn't.

Can anyone help me to figure out how I can get a server side event to
capture this action?
Feb 21 '06 #1
1 1269
Hi Gary,

you should build and handle

DDLB_SelectedIndexChanged event

HTH

Elton Wang

"Gary" wrote:
I'm having a problem with the DataList control, my situation is as follows...

I have a DataList with a Drop Down List Box (DDLB) in the header, this DDLB
is set to AutoPostBack = True. When the selected value in the DDLB is changed
the page does post back however no event is fired, I was expecting the
DataList.ItemCommand to be fired but it doesn't.

Can anyone help me to figure out how I can get a server side event to
capture this action?

Feb 21 '06 #2

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

Similar topics

0
1119
by: Duwayne | last post by:
I have a simple drop down list and I want the indexchange event to fire when the user changes the index to 0. So, in other words, I want the form to sumbit only when I change to index = 0,...
0
1613
by: Ashish Sharma | last post by:
I have a drop down list inside a data list on a form like this : <asp:DataList ID="DataList1" runat="server" EnableViewState="False"> <ItemTemplate> <asp:Label ID="lblname" Runat="server"...
2
3034
by: Shiju Poyilil | last post by:
Hi ! I have a requirement wherein i am binding a datalist which contains a label (Caption for the field) and some literal hidden fields and a dropdown list. When I am binding to the datalist.....
0
880
by: Scott K | last post by:
I have a datalist which has an edititem template. When the user is in edit mode (of the datalist) it shows a couple of text boxes for editing as well as a drop down list box and has a label...
6
2178
by: tshad | last post by:
I need to get to a status label I have on my footer section of my datalist. There is no event happening that would go to the footer. I am just doing some processing and want to update the label...
1
4400
by: Paul L | last post by:
Hi, I have an issue with the OnSelectedIndexChanged event not firing for a DropDownList control which is in the ItemTemplate of a DataList. I have made an exact copy of the DropDownList control,...
7
3325
by: Girish | last post by:
OK.. phew. Playing with data grids for the past few days has been fun and a huge learning experience.. My problem. I have a requirement to display a gird with a gird. Within the embedded grid,...
2
2005
by: Oliver | last post by:
Hi, I've created a shopping cart using DataList control; it has all the usual command buttons; Add, and Delete. However, I want to add a DropDownList so that the user can change the product...
0
3929
by: Isz | last post by:
PROBLEM: This problem is related to the postback and handling events correctly. BACKGROUND: I have a datalist which acts as a tabbes list with horizontal layout. This datalist is bound to a...
0
7223
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
7111
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
7319
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
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7031
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...
0
7485
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...
0
4702
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...
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.