Click here to Skip to main content
15,891,766 members
Home / Discussions / C#
   

C#

 
GeneralRe: Write program to demo CSMA/CD in the Ethernet by C#............ Pin
thucbv18-Jan-08 3:39
thucbv18-Jan-08 3:39 
GeneralRe: Write program to demo CSMA/CD in the Ethernet by C#............ Pin
Vasudevan Deepak Kumar18-Jan-08 4:44
Vasudevan Deepak Kumar18-Jan-08 4:44 
GeneralRe: Write program to demo CSMA/CD in the Ethernet by C#............ Pin
Pete O'Hanlon18-Jan-08 8:50
mvePete O'Hanlon18-Jan-08 8:50 
GeneralRe: Write program to demo CSMA/CD in the Ethernet by C#............ Pin
Mustafa Ismail Mustafa18-Jan-08 9:16
Mustafa Ismail Mustafa18-Jan-08 9:16 
GeneralRe: Write program to demo CSMA/CD in the Ethernet by C#............ Pin
Pete O'Hanlon18-Jan-08 9:32
mvePete O'Hanlon18-Jan-08 9:32 
GeneralRe: Write program to demo CSMA/CD in the Ethernet by C#............ Pin
pmarfleet18-Jan-08 5:03
pmarfleet18-Jan-08 5:03 
GeneralRule #2 Pin
DavidNohejl18-Jan-08 3:02
DavidNohejl18-Jan-08 3:02 
QuestionHOWTO: Null/Empty value for combobox? Pin
jdstuart18-Jan-08 2:30
jdstuart18-Jan-08 2:30 
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 believe it can be solved with the back-end code, this is why I posted it to the C# and ASP.Net section.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: HOWTO: Null/Empty value for combobox? Pin
Not Active18-Jan-08 5:26
mentorNot Active18-Jan-08 5:26 
GeneralRe: HOWTO: Null/Empty value for combobox? Pin
Gareth H18-Jan-08 6:47
Gareth H18-Jan-08 6:47 
GeneralReports in C# Pin
Dewald18-Jan-08 1:10
Dewald18-Jan-08 1:10 
GeneralRe: Reports in C# Pin
Mustafa Ismail Mustafa18-Jan-08 1:51
Mustafa Ismail Mustafa18-Jan-08 1:51 
GeneralRe: Reports in C# Pin
blackjack215018-Jan-08 3:23
blackjack215018-Jan-08 3:23 
GeneralRe: Reports in C# Pin
Pete O'Hanlon18-Jan-08 8:52
mvePete O'Hanlon18-Jan-08 8:52 
GeneralRe: Reports in C# Pin
PIEBALDconsult18-Jan-08 3:09
mvePIEBALDconsult18-Jan-08 3:09 
GeneralRe: Reports in C# Pin
V.18-Jan-08 5:04
professionalV.18-Jan-08 5:04 
GeneralRe: Reports in C# Pin
MrPlankton18-Jan-08 7:20
MrPlankton18-Jan-08 7:20 
GeneralRe: Reports in C# Pin
Ennis Ray Lynch, Jr.18-Jan-08 8:46
Ennis Ray Lynch, Jr.18-Jan-08 8:46 
QuestionC#:How to change the color of a disabled Combobox control? Pin
kssknov18-Jan-08 0:44
kssknov18-Jan-08 0:44 
GeneralRe: C#:How to change the color of a disabled Combobox control? Pin
Mustafa Ismail Mustafa18-Jan-08 1:44
Mustafa Ismail Mustafa18-Jan-08 1:44 
GeneralRe: C#:How to change the color of a disabled Combobox control? Pin
kssknov18-Jan-08 2:02
kssknov18-Jan-08 2:02 
GeneralRe: C#:How to change the color of a disabled Combobox control? Pin
DaveyM6918-Jan-08 2:39
professionalDaveyM6918-Jan-08 2:39 
GeneralRe: C#:How to change the color of a disabled Combobox control? Pin
Mustafa Ismail Mustafa18-Jan-08 2:53
Mustafa Ismail Mustafa18-Jan-08 2:53 
GeneralRe: C#:How to change the color of a disabled Combobox control? Pin
V.18-Jan-08 5:06
professionalV.18-Jan-08 5:06 
QuestionHow to make upper all data in datatable? Pin
Pankaj - Joshi17-Jan-08 23:40
Pankaj - Joshi17-Jan-08 23:40 

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.