Click here to Skip to main content
15,920,438 members
Home / Discussions / C#
   

C#

 
QuestionNested Datagrids Pin
Member 124072312-Oct-05 22:46
Member 124072312-Oct-05 22:46 
QuestionLoad Balanced Network Pin
Andre Trollip12-Oct-05 21:26
Andre Trollip12-Oct-05 21:26 
AnswerRe: Load Balanced Network Pin
XRaheemX13-Oct-05 3:54
XRaheemX13-Oct-05 3:54 
AnswerRe: Load Balanced Network Pin
Dave Kreskowiak13-Oct-05 6:25
mveDave Kreskowiak13-Oct-05 6:25 
QuestionTreeView selectedNode problem Pin
ppp00112-Oct-05 21:07
ppp00112-Oct-05 21:07 
AnswerRe: TreeView selectedNode problem Pin
mav.northwind12-Oct-05 23:21
mav.northwind12-Oct-05 23:21 
QuestionThe problem about Excel Automation add-ins(C#) Pin
dreamwinter12-Oct-05 20:48
dreamwinter12-Oct-05 20:48 
QuestionDisabling controls Pin
Brendan Vogt12-Oct-05 20:29
Brendan Vogt12-Oct-05 20:29 
Hi guys,

I want to ask a question about diabling a control.

I have to select boxes, regions and areas. And a text box that represents a unique ID.

Now I only want the user to search either by location, or by unique ID. So if the user selects a region, all the areas for that regions are loaded in the area select control. Then, in the same process, it should make the textbox ReadOnly (so that no data can be entered), which works fine. But my problems comes is, if the user starts to type in a unique ID, then it should disable the 2 select boxes. If the textbox is cleared, then the 2 select boxes are enabled again.

I'm not sure if there is an event that checks for this? I think there is an event for the textbox something like text changed, but this doesn't work when I start typing in text, probably because it doesn't make a trip to the server. Is my only option for this via Javascript? Or can I do this on the server? I'm using C#.

Regards.

-- modified at 3:23 Thursday 13th October, 2005
AnswerRe: Disabling controls Pin
XRaheemX13-Oct-05 3:43
XRaheemX13-Oct-05 3:43 
AnswerRe: Disabling controls Pin
Dave Kreskowiak13-Oct-05 6:22
mveDave Kreskowiak13-Oct-05 6:22 
Questionalignment problem please help me its urgent Pin
arusmemon12-Oct-05 19:42
arusmemon12-Oct-05 19:42 
QuestionScrolling the RichtextBox Pin
AB777112-Oct-05 19:21
AB777112-Oct-05 19:21 
AnswerRe: Scrolling the RichtextBox Pin
mav.northwind12-Oct-05 20:15
mav.northwind12-Oct-05 20:15 
QuestionSend Pack Data from Server To Client In C# ? Pin
thk2612-Oct-05 18:40
thk2612-Oct-05 18:40 
AnswerRe: Send Pack Data from Server To Client In C# ? Pin
David Stone12-Oct-05 19:40
sitebuilderDavid Stone12-Oct-05 19:40 
QuestionNeed control structure to validate Text Input Pin
...---...12-Oct-05 16:31
...---...12-Oct-05 16:31 
QuestionWork with scenario in c#? Pin
mpw_12-Oct-05 16:10
mpw_12-Oct-05 16:10 
QuestionHow to quickly draw a transparent image Pin
cchere12-Oct-05 14:57
cchere12-Oct-05 14:57 
AnswerRe: How to quickly draw a transparent image Pin
sduhd12-Oct-05 15:38
sduhd12-Oct-05 15:38 
GeneralRe: How to quickly draw a transparent image Pin
Anonymous12-Oct-05 15:43
Anonymous12-Oct-05 15:43 
QuestionHow to Draw a Rectangle? Pin
sduhd12-Oct-05 14:53
sduhd12-Oct-05 14:53 
AnswerRe: How to Draw a Rectangle? Pin
Gulfraz Khan13-Oct-05 2:18
Gulfraz Khan13-Oct-05 2:18 
QuestionSystem.Appdomain.CreateDomain(...) returns __TransparentProxy Pin
Rein_Petersen12-Oct-05 9:28
Rein_Petersen12-Oct-05 9:28 
AnswerRe: System.Appdomain.CreateDomain(...) returns __TransparentProxy Pin
leppie12-Oct-05 11:19
leppie12-Oct-05 11:19 
GeneralRe: System.Appdomain.CreateDomain(...) returns __TransparentProxy Pin
Rein_Petersen13-Oct-05 2:56
Rein_Petersen13-Oct-05 2:56 

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.