473,399 Members | 3,302 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,399 software developers and data experts.

Dropdownlist in usercontrol doesn't fire

Kim
I have a user control with 3 dropdownlist when a user selects the first
listbox based on his/her selection the 2 listbox will load based off
the users selection from the 2nd listbox the 3rd listbox will load. My
problem is the first listbox works but when the user selects the 2nd
listbox the event fires but not in the selectedindexchange event all of
the dropdownlist have autopostback set to true. I have debug and found
that when I select an item in the 2nd listbox it post back to the page
but never fires the dropdownlist2 it does however fires the first
dropdownlist1. Any help will be greatly appreciated.

Mar 19 '06 #1
3 1449
http://www.societopia.net/samples/dy...viewstate.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Kim" wrote:
I have a user control with 3 dropdownlist when a user selects the first
listbox based on his/her selection the 2 listbox will load based off
the users selection from the 2nd listbox the 3rd listbox will load. My
problem is the first listbox works but when the user selects the 2nd
listbox the event fires but not in the selectedindexchange event all of
the dropdownlist have autopostback set to true. I have debug and found
that when I select an item in the 2nd listbox it post back to the page
but never fires the dropdownlist2 it does however fires the first
dropdownlist1. Any help will be greatly appreciated.

Mar 20 '06 #2
Kim
Ok thanks but the website you sent me to didn't have any code or explanation
on how or why my dropdownlist on my usercontrol is acting that specific way

"Phillip Williams" wrote:
http://www.societopia.net/samples/dy...viewstate.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Kim" wrote:
I have a user control with 3 dropdownlist when a user selects the first
listbox based on his/her selection the 2 listbox will load based off
the users selection from the 2nd listbox the 3rd listbox will load. My
problem is the first listbox works but when the user selects the 2nd
listbox the event fires but not in the selectedindexchange event all of
the dropdownlist have autopostback set to true. I have debug and found
that when I select an item in the 2nd listbox it post back to the page
but never fires the dropdownlist2 it does however fires the first
dropdownlist1. Any help will be greatly appreciated.

Mar 20 '06 #3
Kim,

You probably missed the links to the source code at the bottom of the page
whose link I gave you.

The concept is to create the controls on 2 stages: 1) initialization: where
you define the controls markup, 2) populating the controls with data. The
first has to happen during the controls initialization stage whereas the
second can happen while consuming an event from another control.

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Kim" wrote:
Ok thanks but the website you sent me to didn't have any code or explanation
on how or why my dropdownlist on my usercontrol is acting that specific way

"Phillip Williams" wrote:
http://www.societopia.net/samples/dy...viewstate.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Kim" wrote:
I have a user control with 3 dropdownlist when a user selects the first
listbox based on his/her selection the 2 listbox will load based off
the users selection from the 2nd listbox the 3rd listbox will load. My
problem is the first listbox works but when the user selects the 2nd
listbox the event fires but not in the selectedindexchange event all of
the dropdownlist have autopostback set to true. I have debug and found
that when I select an item in the 2nd listbox it post back to the page
but never fires the dropdownlist2 it does however fires the first
dropdownlist1. Any help will be greatly appreciated.

Mar 21 '06 #4

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

Similar topics

1
by: Rhy Mednick | last post by:
I'm creating a custom control (inherited from UserControl) that is displayed by other controls on the form. I would like for the control to disappear when the user clicks outside my control the...
2
by: Benedict Teoh | last post by:
I created a dropdownlist containing day, month and year field and expose a property to assign a date. When I call from a aspx page and assign the value, the new date is not displayed until a submit...
6
by: Roshawn | last post by:
Hi, I have a DDL server control on my web form. I'm having difficulty trying to fire the OnSelectedIndexChanged event. I've specified a procedure to handle the event. Whenever I changed the...
3
by: Tim::.. | last post by:
Hi... Can someone please tell me what I'm doing wrong here... I have a dropdownmenu populated from a database! The idea is that a user selects an option from the dropdownlist which then loads...
3
by: Don | last post by:
I've created a custom UserControlwithin which I have placed a Panel. I've changed the Panel's "Modifier" property to Public so that it appears in the Properties Window of the UserControl. This...
2
by: Michael | last post by:
Hi again, I really hope that there is a simple solution to this one, cause I'm having simular things happening to other controls on this usercontrol. I have the following control:...
2
by: bobbyc13 | last post by:
I am new to vb.net and am getting frustrated and cannot find a post on the subject. I have a usercontrol (.ascx) with a dropdownlist. on the selectedindexchanged event of the codebeside of the...
1
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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...
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...
0
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...

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.