472,960 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,960 software developers and data experts.

DropDownList Issue with Firefox

Hi,

I have a page with several Textboxes and several DropDownList. When I click
on a 'save' button, it creates a record in a database.

The page works fine under Internet Explorer.

It does not work under FireFox. The dropdownlist are always selecting the
zero index value. If I debug and I stop the program in the page_load, the
dropdownlist are already set to zero index.

Anyone can help me?

Thanks,

Olivier
Nov 19 '05 #1
3 2878
Olivier, I can't speak to the browser differences, but if you're counting on
the fact that while the first item is shown it's not actually selected yet,
I'd suggest in the interests of usability you either: a) always select your
first item via code if it's the default or b) create a "select one" item as
the first item if there is no good default, and make sure it fails your
validation if the user doesn't change it.

I've always thought it odd there can be an item showing that's not really
selected, and it wouldn't surprise me for that to behave differently on
different browsers.

Bill

"Olivier Verdin" wrote:
Hi,

I have a page with several Textboxes and several DropDownList. When I click
on a 'save' button, it creates a record in a database.

The page works fine under Internet Explorer.

It does not work under FireFox. The dropdownlist are always selecting the
zero index value. If I debug and I stop the program in the page_load, the
dropdownlist are already set to zero index.

Anyone can help me?

Thanks,

Olivier

Nov 19 '05 #2
The point is not the usability.

The dropdownlist are selected depending on a value in a record in a
database.

DropDownList show the right value when first displayed. Then the user
changes one of the dropdownlist and click save. The system must take the
new selected value and update the record.

This work fine with IE not with Firefox. That's the issue.

Considerations on usability is not the point to my request. Thanks anyway
for your remark. It will perhaps help someone else.

The question is still open. What is the difference between IE and Firefox
in managing the dropdownlist?

Thanks for your help,

Olivier
"Bill Borg" <Bi******@discussions.microsoft.com> wrote in message
news:B4**********************************@microsof t.com...
Olivier, I can't speak to the browser differences, but if you're counting on the fact that while the first item is shown it's not actually selected yet, I'd suggest in the interests of usability you either: a) always select your first item via code if it's the default or b) create a "select one" item as the first item if there is no good default, and make sure it fails your
validation if the user doesn't change it.

I've always thought it odd there can be an item showing that's not really
selected, and it wouldn't surprise me for that to behave differently on
different browsers.

Bill

"Olivier Verdin" wrote:
Hi,

I have a page with several Textboxes and several DropDownList. When I click on a 'save' button, it creates a record in a database.

The page works fine under Internet Explorer.

It does not work under FireFox. The dropdownlist are always selecting the zero index value. If I debug and I stop the program in the page_load, the dropdownlist are already set to zero index.

Anyone can help me?

Thanks,

Olivier

Nov 19 '05 #3

The selected index is not yet set in Page_Load because ViewState hasn't been
restored/merged; so you can't read it there. You must attach a
SelectedIndexChanged event handler to your drop down list and read the new
value there.

-Oleg.

"Olivier Verdin" <ol************@playcorporate.com> wrote in message
news:Ob**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have a page with several Textboxes and several DropDownList. When I
click
on a 'save' button, it creates a record in a database.

The page works fine under Internet Explorer.

It does not work under FireFox. The dropdownlist are always selecting the
zero index value. If I debug and I stop the program in the page_load, the
dropdownlist are already set to zero index.

Anyone can help me?

Thanks,

Olivier

Nov 19 '05 #4

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

Similar topics

0
by: Penny Bond | last post by:
Hello, Have an asp.net page that has a number of textboxes, dropdownlists, buttons, datagrid and custom validators on it. In all dropdownlists on the page, I have approximately 20 Here is...
1
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,...
5
by: sri | last post by:
I have a usercontrol that has the dropdownlist which has Autopostback set to true. The selectedindex changed event is not getting fired from IE if the production webserver has ASP.NET 1.1.4322.573...
1
by: Alex D. | last post by:
hey guys I found what is causing the problems with my treeview in Firefox...the answer is: treeview+dropdwonlist in the same page dont work! try this simple code and see for yourselves. you can do...
1
by: DJ | last post by:
I have a DropDownList in Visual Web Developer that is databound to a SQL Database. Whenever the web page is opened the DropDownList is automatically filled with the first item in the table. My...
3
by: Klaas | last post by:
Hi, Is it possible to get the text in a dropdown list to be bold or italic? Some entries I want to have bold others normal and others italic. I cant figure out how to do this. tia
11
by: harold.gimenez | last post by:
Hi group, I am trying to change the selection of an ASP Dropdownlist just like "Orange" is selected here: http://www.w3schools.com/js/tryit.asp?filename=try_dom_option_selected The...
3
by: mwalts | last post by:
I'm fairly new to ASP.NET, although I have a fair amount of C# experience. I'm creating a SharePoint Web Part, but I'm doing the development for it locally in ASP.NET 1.1 I'm using a...
5
by: ssmeshack | last post by:
Hi All, Im using VWD 2008 (c#), I have a question here. Im having a dropdownlist like this: <asp:DropDownList ID="ddlIssue" runat="server" AutoPostBack="True" ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.