Click here to Skip to main content
15,905,967 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to add additional fields in UserCreateWizard control in ASP.NET2.0 Pin
pmarfleet18-Jan-08 10:35
pmarfleet18-Jan-08 10:35 
GeneralAdvantages of ASP.NET 3.5 over ASP.NET 2.0 Pin
intelgenius18-Jan-08 4:25
intelgenius18-Jan-08 4:25 
GeneralRe: Advantages of ASP.NET 3.5 over ASP.NET 2.0 Pin
Vasudevan Deepak Kumar18-Jan-08 4:40
Vasudevan Deepak Kumar18-Jan-08 4:40 
Questionhow a dropdown list selection changed event is called throug javascript Pin
jagan12318-Jan-08 2:27
jagan12318-Jan-08 2:27 
AnswerRe: how a dropdown list selection changed event is called throug javascript Pin
szukuro18-Jan-08 2:45
szukuro18-Jan-08 2:45 
AnswerRe: how a dropdown list selection changed event is called throug javascript Pin
N a v a n e e t h18-Jan-08 2:50
N a v a n e e t h18-Jan-08 2:50 
GeneralTrouble consuming a Web Service from a C# Windows Forms App Pin
Bill Prada18-Jan-08 2:26
Bill Prada18-Jan-08 2:26 
QuestionNull/Empty item in combobox. Pin
jdstuart18-Jan-08 2:26
jdstuart18-Jan-08 2:26 
Good day.

First, I have to ask, to please excuse my English.

I have an aspx page with 5 comboboxes on it. The 2nd combobox's details is dependand on the 1st one's selectedValue and combobox 3,4 and 5 is dependand on combobox2's selectedValue. Auto-postback is enabled on both combobox 1 & 2.

Whenever I choose a value in combobox 1, the data in combobox 2 gets updated and the first item in combobox2 is automatically selected. The problem with this is that data in combobox 3, 4 & 5 is dependant om the selectedValue of combobox2 and also needs to be updated with the new selectedValue of combobox2, but it does not get updated when the selectedValue of combobox2 changes as a result of the change in combobox1.

The problem exists when a users choice is the value already selected in combobox2, then the data for comboboxes 3, 4 & 5 aren't populated correctly.

It doesn't help disabling of hiding comboboxes 3-5 and only enabling it when the selectedValue of combobox2 changes, because the user will still click on the same value already selected, and the event will not fire.
I also tried adding a "empty" value to the combobox and selecting it as default, but this will lead to a foreign key violation in the databse.

The question is...
Is there a way, that I can (without adding an empty entry in the database - bad practise) set the initial selected item to a blank entry, thereby forcing the user to change the selected index?
I'm currently using ASP.Net 2.0 and the back-end code is in C#. I can make use of Javascript, but the application I'm developing doesn't work all to well with AJAX.


Thanks in advance.
JD Stuart
GeneralRe: Null/Empty item in combobox. Pin
N a v a n e e t h18-Jan-08 2:39
N a v a n e e t h18-Jan-08 2:39 
GeneralRe: Null/Empty item in combobox. Pin
jdstuart18-Jan-08 2:49
jdstuart18-Jan-08 2:49 
GeneralRe: Null/Empty item in combobox. Pin
N a v a n e e t h18-Jan-08 2:51
N a v a n e e t h18-Jan-08 2:51 
AnswerRe: Null/Empty item in combobox. Pin
jdstuart20-Jan-08 20:11
jdstuart20-Jan-08 20:11 
QuestionWhy won't it work??? Pin
learningman18-Jan-08 2:19
learningman18-Jan-08 2:19 
AnswerRe: Why won't it work??? Pin
pmarfleet18-Jan-08 2:49
pmarfleet18-Jan-08 2:49 
GeneralRe: Why won't it work??? Pin
learningman18-Jan-08 3:36
learningman18-Jan-08 3:36 
AnswerRe: Why won't it work??? Pin
Paddy Boyd18-Jan-08 3:48
Paddy Boyd18-Jan-08 3:48 
QuestionHow can this be possible - Part 2 Pin
v1i9n6o7d18-Jan-08 1:59
v1i9n6o7d18-Jan-08 1:59 
AnswerRe: How can this be possible - Part 2 Pin
Paddy Boyd18-Jan-08 3:49
Paddy Boyd18-Jan-08 3:49 
GeneralRe: How can this be possible - Part 2 Pin
v1i9n6o7d18-Jan-08 19:46
v1i9n6o7d18-Jan-08 19:46 
GeneralLAN connection status Pin
saravanan0518-Jan-08 1:38
saravanan0518-Jan-08 1:38 
GeneralRe: LAN connection status Pin
Vasudevan Deepak Kumar18-Jan-08 3:44
Vasudevan Deepak Kumar18-Jan-08 3:44 
QuestionHow to run my application in IE. Pin
mithun narayanan18-Jan-08 1:37
mithun narayanan18-Jan-08 1:37 
GeneralRe: How to run my application in IE. Pin
v1i9n6o7d18-Jan-08 2:01
v1i9n6o7d18-Jan-08 2:01 
Generaldisplay image from a file Pin
michael_jhons18-Jan-08 1:29
michael_jhons18-Jan-08 1:29 
GeneralLocalization problem with html controls Pin
metkor18-Jan-08 1:28
metkor18-Jan-08 1:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.