HTML
Project Completed?
End Date
Results Folder
and here is the C# behind it
protected void CheckBox_ProjectResults_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox_ProjectResults.Checked == true)
{
TxtActualEnd.Enabled = false;
attachmentFileUpload.Enabled = false;
}
else
{
TxtActualEnd.Enabled = true;
attachmentFileUpload.Enabled = true;
}
}

Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Feb 25, 2015, 3:49 PM EST
Hope it will be work
Joginder BangerRank #360 · 7K reputationPosted Feb 25, 2015, 5:02 PM EST
I think it's a wrong way for disabled the textbox and fileupload. This is not a correct way, you can do with lovely jquery without page post back condition. searching on Google lots of code available.