Click here to Skip to main content
15,902,275 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
AnswerRe: how to check Pin
Abhijit Jana27-Jun-09 2:46
professionalAbhijit Jana27-Jun-09 2:46 
QuestionGet value from javascript function into Dropdown and Display selected Value Pin
.NET- India 27-Jun-09 2:01
.NET- India 27-Jun-09 2:01 
AnswerRe: Get value from javascript function into Dropdown and Display selected Value Pin
padmanabhan N27-Jun-09 2:08
padmanabhan N27-Jun-09 2:08 
GeneralRe: Get value from javascript function into Dropdown and Display selected Value Pin
.NET- India 27-Jun-09 2:15
.NET- India 27-Jun-09 2:15 
GeneralRe: Get value from javascript function into Dropdown and Display selected Value Pin
padmanabhan N27-Jun-09 2:29
padmanabhan N27-Jun-09 2:29 
GeneralRe: Get value from javascript function into Dropdown and Display selected Value Pin
nitin_vatsus28-Jun-09 8:37
nitin_vatsus28-Jun-09 8:37 
Questionado.net Pin
naveen attri27-Jun-09 1:41
naveen attri27-Jun-09 1:41 
AnswerRe: ado.net Pin
padmanabhan N27-Jun-09 1:55
padmanabhan N27-Jun-09 1:55 

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.