Click here to Skip to main content
15,897,704 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProject Compile Pin
Amit Kumar G6-Jan-07 6:59
Amit Kumar G6-Jan-07 6:59 
AnswerRe: Project Compile Pin
Not Active6-Jan-07 7:09
mentorNot Active6-Jan-07 7:09 
QuestionProblem with controls seeking inside DataGrid Pin
Tygrys[work]6-Jan-07 3:20
Tygrys[work]6-Jan-07 3:20 
GeneralHOME WORKERS NEEDED(9261) Pin
kapil khanna6-Jan-07 3:03
kapil khanna6-Jan-07 3:03 
GeneralRe: HOME WORKERS NEEDED(9261) Pin
enjoycrack6-Jan-07 4:47
enjoycrack6-Jan-07 4:47 
GeneralRe: HOME WORKERS NEEDED(9261) Pin
minhpc_bk6-Jan-07 5:12
minhpc_bk6-Jan-07 5:12 
GeneralDisable Combo Box Pin
Monty26-Jan-07 1:52
Monty26-Jan-07 1:52 
GeneralRe: Disable Combo Box Pin
minhpc_bk6-Jan-07 5:09
minhpc_bk6-Jan-07 5:09 
Basically, if you want to disable an element at client side, you can use javascript to set the disabled[^] to true. So in this case, if you want to disable the second dropdownlist once the user makes his selection on the first one, you can use the onchange event of the first dropdownlist to run your script to disable the second one. The sample code to register the script looks something like:
DropDownList1.Attributes.Add("onchange", "YourDisableScript(...);");


One more thing that you might should know is that when an input element like dropdownlist or textbox ... is disabled, its value is not submitted to the server when the page posts back. So if you want to disable the first dropdownlist, you will need to persist the value in a hidden element so that you can populate the second dropdownlist. Also, you might also consider using ajax in this case instead of posting the page back to populate the other dropdownlist based on the selection of the first one.



Questiondeploying asp.net on LAN Pin
aransiola6-Jan-07 1:16
aransiola6-Jan-07 1:16 
AnswerRe: deploying asp.net on LAN Pin
enjoycrack6-Jan-07 4:33
enjoycrack6-Jan-07 4:33 
QuestionAsp menu For right to left languages Pin
arunpillai6-Jan-07 1:11
arunpillai6-Jan-07 1:11 
Questionchanging image controls image at regular interval Pin
Rmesh5-Jan-07 23:30
Rmesh5-Jan-07 23:30 
AnswerRe: changing image controls image at regular interval Pin
WillemM7-Jan-07 8:05
WillemM7-Jan-07 8:05 
Questionfunction return type Pin
Kissy165-Jan-07 22:57
Kissy165-Jan-07 22:57 
AnswerRe: function return type Pin
minhpc_bk6-Jan-07 4:55
minhpc_bk6-Jan-07 4:55 
Questionasp database Pin
NadyaS5-Jan-07 21:06
NadyaS5-Jan-07 21:06 
AnswerRe: asp database Pin
minhpc_bk5-Jan-07 21:26
minhpc_bk5-Jan-07 21:26 
Questioncheckbox in datagrid Pin
sridevi145-Jan-07 21:01
sridevi145-Jan-07 21:01 
AnswerRe: checkbox in datagrid Pin
minhpc_bk5-Jan-07 21:23
minhpc_bk5-Jan-07 21:23 
AnswerRe: checkbox in datagrid Pin
Not Active6-Jan-07 3:07
mentorNot Active6-Jan-07 3:07 
QuestionHOw can i build S- Curves on a web page? Pin
Guru_yogi5-Jan-07 20:53
Guru_yogi5-Jan-07 20:53 
AnswerRe: HOw can i build S- Curves on a web page? Pin
Vasudevan Deepak Kumar5-Jan-07 21:57
Vasudevan Deepak Kumar5-Jan-07 21:57 
GeneralRe: HOw can i build S- Curves on a web page? Pin
Guru_yogi5-Jan-07 22:35
Guru_yogi5-Jan-07 22:35 
Questionuser to enter only numeric values in textbox using asp.net1.1 Pin
sukhchain singh5-Jan-07 19:43
sukhchain singh5-Jan-07 19:43 
AnswerRe: user to enter only numeric values in textbox using asp.net1.1 Pin
minhpc_bk5-Jan-07 21:31
minhpc_bk5-Jan-07 21:31 

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.