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

DropDownlist Problem again

Hi,
I have 4 items in a dropdownlist. After selecting the item the dropdownlist
gets disabled. this operation is performed in selectedIndexChangeCommited
event.

Now the problem is, I hignlight the 3rd item and tab out from the list. The
1st item is getting selected and the list becomes disabled.
Anyone knows why this is happening?

Any help will be appreciated.
Thanks in advance.
--
K_
Nov 17 '05 #1
3 1508
LF
Hi,
As I understand, the first item in the list will always be the selected one.
Try performing a check on what the user selected, before you disable the
dropdown in the selectedIndexChange method of your dropdown.

Cheers,
LF
"Paraki" wrote:
Hi,
I have 4 items in a dropdownlist. After selecting the item the dropdownlist
gets disabled. this operation is performed in selectedIndexChangeCommited
event.

Now the problem is, I hignlight the 3rd item and tab out from the list. The
1st item is getting selected and the list becomes disabled.
Anyone knows why this is happening?

Any help will be appreciated.
Thanks in advance.
--
K_

Nov 17 '05 #2
LF
Hi,
As I understand, the first item in the list will always be the selected one.
Try performing a check on what the user selected, before you disable the
dropdown in the selectedIndexChange method of your dropdown.

Cheers,
LF
"Paraki" wrote:
Hi,
I have 4 items in a dropdownlist. After selecting the item the dropdownlist
gets disabled. this operation is performed in selectedIndexChangeCommited
event.

Now the problem is, I hignlight the 3rd item and tab out from the list. The
1st item is getting selected and the list becomes disabled.
Anyone knows why this is happening?

Any help will be appreciated.
Thanks in advance.
--
K_

Nov 17 '05 #3
Hi,
The selected index is showing as 3 which I have selected, but still the
first item gets selected and the control is getting disabled.
--
K_
"LF" wrote:
Hi,
As I understand, the first item in the list will always be the selected one.
Try performing a check on what the user selected, before you disable the
dropdown in the selectedIndexChange method of your dropdown.

Cheers,
LF
"Paraki" wrote:
Hi,
I have 4 items in a dropdownlist. After selecting the item the dropdownlist
gets disabled. this operation is performed in selectedIndexChangeCommited
event.

Now the problem is, I hignlight the 3rd item and tab out from the list. The
1st item is getting selected and the list becomes disabled.
Anyone knows why this is happening?

Any help will be appreciated.
Thanks in advance.
--
K_

Nov 17 '05 #4

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

Similar topics

12
by: Stanley J Mroczek | last post by:
How do you load a dropdownlist when edit is clicked in a datagrid ? <Columns> <asp:BoundColumn DataField="OptionDescription" ItemStyle-Wrap="True" HeaderText="Option...
2
by: Dominic | last post by:
Hi guys, I'm not sure if this question belongs to FAQ, but I couldn't find a concrete answer. I created a Datagrid control using ItemTemplate, but it's NOT a in-place editing datagrid. One of...
0
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"...
4
by: Keith | last post by:
I have this simple scenario. -------- Choose an item ->dropdownlist-> or <a>Create a new item</a> -------- When someone decides to click on the create a new item link, it takes them to a...
18
by: Julia Hu | last post by:
Hi, I have a datagrid, and in different rows I need to programmatically bind different type of controls and load data into these controls. For example,in the first row I need to bind data into a...
10
by: dhnriverside | last post by:
Hi guys Still having a problem with this dropdownlist. Basically, I've got 4. The first 2 work fine, then my code crashes on the 3rd. ddlEndTimeHour.Items.FindByValue(endTime).Selected =...
4
by: wolfgang wagner | last post by:
hi all! after successfully integrating a dropdownlist in my datagrid i have another problem: i cannot set the selected index of the dropdownlistbox. here is my code: hardware.aspx...
2
by: glenn | last post by:
Hi folks, I am trying to determine which item in a DropDownList Web control has been selected. I have posted an OnSelectedIndexChanged subroutine in my code with a reference to the subroutine...
15
by: glenn | last post by:
Hi folks, I have a DropDownList in a DataGrid that is populated from records in a database. I want to add a value that might be a string such as "Select a Company" for the first item since an...
0
by: asmx126453 | last post by:
Hey mensen I am having some big troubles here i tryd solving it myself with internet for 2 days but i kind fix it. Its about this i have a DotNet project that alrydi is online and working for...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
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,...

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.