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 ChoudharyPosted Feb 25, 2015, 8:49 PM
Hope it will be work
Joginder BangerPosted Feb 25, 2015, 10:02 PM
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.