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

unbound DropDownList SelectedIndexChanged not firing

I have a DropDownList which is originally bound to a SqlDataSource. In
Design view, the control is shown as "Databound".

Later I changed my mind and changed the dropdown binded to a datatable
programmatically. In Design view, the control is shown as "Unbound". The
poblem is: after the change, the SelectedIndexChanged event no longer fires.

Any clue to why this happening?

I'm using vb.net, VS2005. Thanks.
Oct 10 '08 #1
3 2438
It may help if you posted your code. Probably the most important things for
us to see are:

1. The section of your *.aspx file containing the DropDownList
2. The section of your *.aspx.vb file where you do the databinding
3. The section of your *.aspx.vb file containing the SelectedIndexChanged
eventhandler

Seeing this information will probably help both me and others help you solve
your problem.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"E. Kwong" <ekwong999AThotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I have a DropDownList which is originally bound to a SqlDataSource. In
Design view, the control is shown as "Databound".

Later I changed my mind and changed the dropdown binded to a datatable
programmatically. In Design view, the control is shown as "Unbound". The
poblem is: after the change, the SelectedIndexChanged event no longer
fires.

Any clue to why this happening?

I'm using vb.net, VS2005. Thanks.

Oct 10 '08 #2
for iis 7.0 its IIS native code api:

http://msdn.microsoft.com/en-us/library/aa347613.aspx

for previous versions you use the iis com api:

http://msdn.microsoft.com/en-us/library/ms524505.aspx
-- bruce (sqlwork.com)
"E. Kwong" wrote:
I have a DropDownList which is originally bound to a SqlDataSource. In
Design view, the control is shown as "Databound".

Later I changed my mind and changed the dropdown binded to a datatable
programmatically. In Design view, the control is shown as "Unbound". The
poblem is: after the change, the SelectedIndexChanged event no longer fires.

Any clue to why this happening?

I'm using vb.net, VS2005. Thanks.
Oct 10 '08 #3
sorry - picked wrong thread

-- bruce (sqlwork.com)
"bruce barker" wrote:
for iis 7.0 its IIS native code api:

http://msdn.microsoft.com/en-us/library/aa347613.aspx

for previous versions you use the iis com api:

http://msdn.microsoft.com/en-us/library/ms524505.aspx
-- bruce (sqlwork.com)
"E. Kwong" wrote:
I have a DropDownList which is originally bound to a SqlDataSource. In
Design view, the control is shown as "Databound".

Later I changed my mind and changed the dropdown binded to a datatable
programmatically. In Design view, the control is shown as "Unbound". The
poblem is: after the change, the SelectedIndexChanged event no longer fires.

Any clue to why this happening?

I'm using vb.net, VS2005. Thanks.

Oct 10 '08 #4

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

Similar topics

2
by: Paul Lacey | last post by:
When dynamically placing dropdownlists inside a panel, the dropdownlist's SelectedIndexChanged event doesn't fire. If you take the dropdownlist out of the panel it works properly. Autopostback is...
1
by: ProSAAP | last post by:
I need help. I am attaching both the html stuff as well as the code snippet that is not firing. Can someone please help me Thank Sub InputPub_SelectedIndexChanged(ByVal sender As Object, ByVal e...
2
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.....
3
by: Lew Barnesson | last post by:
Hi All, I have looked and looked for an answer to the following problem (without success), and would be very grateful for a solution. The problem: The SelectedIndexChanged event code of an...
5
by: bryanp10 | last post by:
I have a page that is almost entirely dynamically created. Textboxes and checkbox are working fine, firing events, and persistent their state. DropDownList is giving me a major headache. All...
1
by: CurlyFro | last post by:
i have a userControl (.ascx) that has a dropdownlist embedded in a datagrid. the dropdownlist autopostback is set to true. why isn't the selectedIndexChanged firing? Private Sub...
11
by: Santosh | last post by:
Dear all , i am writting following code. if(Page.IsPostBack==false) { try { BindSectionDropDownlist();
2
by: jnoody | last post by:
The problem I am having is with the SelectedIndexChanged event not always firing or the SelectedIndex property not being correct when the event does fire. The code is below, but here are some...
7
by: Damien | last post by:
Hi guys, I'm trying to learn ASP.NET and got a problem with DroDownList... SelectedIndexChanged doesn't fire. Maybe you'll be able to suggest something. I think it may be connected with the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
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...

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.