Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: Video Editing Component? Pin
Tony Archer12-May-04 0:31
Tony Archer12-May-04 0:31 
QuestionHow Know if an control has added an event Pin
machocr10-May-04 10:12
machocr10-May-04 10:12 
AnswerRe: How Know if an control has added an event Pin
Heath Stewart10-May-04 10:41
protectorHeath Stewart10-May-04 10:41 
GeneralSending data over POST Pin
CWIZO10-May-04 9:21
CWIZO10-May-04 9:21 
GeneralRe: Sending data over POST Pin
Heath Stewart10-May-04 9:45
protectorHeath Stewart10-May-04 9:45 
GeneralRe: Sending data over POST Pin
CWIZO10-May-04 10:24
CWIZO10-May-04 10:24 
GeneralRe: Sending data over POST Pin
Heath Stewart10-May-04 10:46
protectorHeath Stewart10-May-04 10:46 
GeneralDropDownList - Behavioral Question. Pin
stan2810-May-04 7:43
stan2810-May-04 7:43 
Code-Behind is c#, and this is for webform.

Assuming you have 2 dropdown list.
Here's a sample code to illustrate.

<asp:dropdownlist id="ddl1" runat="server" OnSelectedIndexChanged="ChangeBehavourddl1" autopostback="true">
<asp:dropdownlist id="ddl2" runat="server" OnSelectedIndexChanged="ChangeBehavourddl2" autopostback="true">

Values from ddl2 will be dependable on ddl1.
In otherwords, when you change the selection on ddl1, ddl2 will change it's results.

Here's my question.
Before writing this code in .Net, I used to have a JavaScript Code that actually disable the dropdown form. But how would you do it in ASP.Net ?

I know the grey out syntax. In this particular case it's:-
ddl1.enabled = "false"
And I can't put this in the OnSelectedIndexChanged method call. Since it's server side control. I need something that is called instantaneously on the front-end.

This is a problem to me because, some query (on ddl1) takes longer than anticipated and i don't want user to select ddl2, before the results for ddl1 is done querying.


Stanley
GeneralRe: DropDownList - Behavioral Question. Pin
Heath Stewart10-May-04 9:03
protectorHeath Stewart10-May-04 9:03 
Generaltoolbar icon Pin
elena1234510-May-04 6:16
elena1234510-May-04 6:16 
GeneralRe: toolbar icon Pin
Heath Stewart10-May-04 6:49
protectorHeath Stewart10-May-04 6:49 
GeneralRe: toolbar icon Pin
elena1234510-May-04 10:08
elena1234510-May-04 10:08 
GeneralRe: toolbar icon Pin
Heath Stewart10-May-04 10:44
protectorHeath Stewart10-May-04 10:44 
GeneralDatabase Wrapper Pin
JohnMess10-May-04 5:25
sussJohnMess10-May-04 5:25 
GeneralRe: Database Wrapper Pin
Heath Stewart10-May-04 5:40
protectorHeath Stewart10-May-04 5:40 
GeneralRe: Database Wrapper Pin
johnmess10-May-04 6:31
sussjohnmess10-May-04 6:31 
QuestionImage retrieval from ImageList is slow? Pin
Judah Gabriel Himango10-May-04 4:39
sponsorJudah Gabriel Himango10-May-04 4:39 
AnswerRe: Image retrieval from ImageList is slow? Pin
Heath Stewart10-May-04 4:47
protectorHeath Stewart10-May-04 4:47 
GeneralRe: Image retrieval from ImageList is slow? Pin
Judah Gabriel Himango10-May-04 4:53
sponsorJudah Gabriel Himango10-May-04 4:53 
GeneralRe: Image retrieval from ImageList is slow? Pin
Judah Gabriel Himango10-May-04 6:19
sponsorJudah Gabriel Himango10-May-04 6:19 
GeneralRe: Image retrieval from ImageList is slow? Pin
leppie10-May-04 11:55
leppie10-May-04 11:55 
Generaljumping from one form to another Pin
michael.wikstrom10-May-04 3:29
michael.wikstrom10-May-04 3:29 
GeneralRe: jumping from one form to another Pin
Heath Stewart10-May-04 3:35
protectorHeath Stewart10-May-04 3:35 
GeneralSending binary data with webservices Pin
Edgar R. C.10-May-04 3:01
Edgar R. C.10-May-04 3:01 
GeneralRe: Sending binary data with webservices Pin
Heath Stewart10-May-04 3:09
protectorHeath Stewart10-May-04 3:09 

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.