Click here to Skip to main content
15,917,321 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCountry Drop Down List in Asp.net Pin
rajanji27-Jun-09 21:33
rajanji27-Jun-09 21:33 
AnswerRe: Country Drop Down List in Asp.net Pin
nitin_vatsus28-Jun-09 8:21
nitin_vatsus28-Jun-09 8:21 
QuestionJavascript regular expressions Pin
benams27-Jun-09 20:26
benams27-Jun-09 20:26 
AnswerRe: Javascript regular expressions Pin
Manas Bhardwaj28-Jun-09 8:33
professionalManas Bhardwaj28-Jun-09 8:33 
AnswerRe: Javascript regular expressions Pin
Niladri_Biswas28-Jun-09 18:13
Niladri_Biswas28-Jun-09 18:13 
QuestionWebClient method and browser giving different response Pin
Member 210280427-Jun-09 19:32
Member 210280427-Jun-09 19:32 
AnswerRe: WebClient method and browser giving different response Pin
nitin_vatsus28-Jun-09 8:25
nitin_vatsus28-Jun-09 8:25 
AnswerRe: WebClient method and browser giving different response Pin
Abhijit Jana28-Jun-09 8:36
professionalAbhijit Jana28-Jun-09 8:36 
GeneralRe: WebClient method and browser giving different response Pin
Member 210280428-Jun-09 16:19
Member 210280428-Jun-09 16:19 
QuestionHow to Use DataView.Select property Pin
meeram39527-Jun-09 19:27
meeram39527-Jun-09 19:27 
AnswerRe: How to Use DataView.Select property [modified] Pin
Niladri_Biswas1-Jul-09 1:39
Niladri_Biswas1-Jul-09 1:39 
GeneralRe: How to Use DataView.Select property Pin
meeram3952-Jul-09 1:06
meeram3952-Jul-09 1:06 
QuestionUploading a File on to shared Hosting Environment by using code Pin
Bahram.Zarrin27-Jun-09 5:40
Bahram.Zarrin27-Jun-09 5:40 
AnswerRe: Uploading a File on to shared Hosting Environment by using code Pin
Manas Bhardwaj27-Jun-09 7:23
professionalManas Bhardwaj27-Jun-09 7:23 
AnswerRe: Uploading a File on to shared Hosting Environment by using code Pin
Abhijit Jana27-Jun-09 19:23
professionalAbhijit Jana27-Jun-09 19:23 
QuestionUnchecking and disabling checkboxes in asp.net Pin
meeram39527-Jun-09 4:12
meeram39527-Jun-09 4:12 
I have four individual checkboxes in my form called as General, Direct, Indirect and Private. The issue is that when private is checked all others should be disabled and unchecked if checked. I have the following code for that:

if (PrivateCheckBox.Checked)
{
GeneralCheckBox.Checked = false;
GeneralCheckBox.Enabled = false;
IndirectCheckBox.Checked = false;
IndirectCheckBox.Enabled = false;
DirectCheckBox.Checked = false;
DirectCheckBox.Enabled = false;
}
else
{
GeneralCheckBox.Checked = true;
GeneralCheckBox.Enabled = true;
IndirectCheckBox.Checked = true;
IndirectCheckBox.Enabled = true;
DirectCheckBox.Checked = true;
DirectCheckBox.Enabled = true;
}

This serves the purpose but simply increases coding lines which I don't want. I can use the ternary operator, but only one operation can do with that, either checked or enabled. Can anybody have any idea how to achieve this with minimum line of code? I am not able to think of any other option.

Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

AnswerRe: Unchecking and disabling checkboxes in asp.net Pin
Not Active27-Jun-09 4:36
mentorNot Active27-Jun-09 4:36 
AnswerRe: Unchecking and disabling checkboxes in asp.net Pin
renjithmp27-Jun-09 9:08
renjithmp27-Jun-09 9:08 
AnswerRe: Unchecking and disabling checkboxes in asp.net Pin
nitin_vatsus28-Jun-09 8:30
nitin_vatsus28-Jun-09 8:30 
GeneralRe: Unchecking and disabling checkboxes in asp.net Pin
meeram3952-Jul-09 1:15
meeram3952-Jul-09 1:15 
QuestionProblem with mage tag Pin
IT_Help27-Jun-09 3:20
IT_Help27-Jun-09 3:20 
AnswerRe: Problem with mage tag Pin
Enver Maroshi27-Jun-09 3:50
Enver Maroshi27-Jun-09 3:50 
AnswerRe: Problem with mage tag Pin
Abhijit Jana27-Jun-09 3:58
professionalAbhijit Jana27-Jun-09 3:58 
GeneralRe: Problem with mage tag Pin
renjithmp27-Jun-09 9:33
renjithmp27-Jun-09 9:33 
Questionhow to check Pin
KhandelwalA27-Jun-09 2:04
KhandelwalA27-Jun-09 2:04 

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.