Server side script does is not executed
-
Hi, I have a asp:checkbox in DataGrid. I attached an event OnCheckedChanged on the checkbox say.. And the event is scripted as : public void dgProjects_CheckedChanged(Object sender ,System.EventArgs e) { CheckBox chkTemp = (CheckBox)sender; DataGridItem dgi; dgi = (DataGridItem)chkTemp.Parent.Parent; if (chkTemp.Checked==true) { dgi.BackColor = dgProjects.SelectedItemStyle.BackColor; dgi.ForeColor = dgProjects.SelectedItemStyle.ForeColor; } else { dgi.BackColor = dgProjects.ItemStyle.BackColor; dgi.ForeColor = dgProjects.ItemStyle.ForeColor ; } } But the event doesnt fire... what do I need to do? Is there anything to add up??? Thanks </x-turndown>
-
Hi, I have a asp:checkbox in DataGrid. I attached an event OnCheckedChanged on the checkbox say.. And the event is scripted as : public void dgProjects_CheckedChanged(Object sender ,System.EventArgs e) { CheckBox chkTemp = (CheckBox)sender; DataGridItem dgi; dgi = (DataGridItem)chkTemp.Parent.Parent; if (chkTemp.Checked==true) { dgi.BackColor = dgProjects.SelectedItemStyle.BackColor; dgi.ForeColor = dgProjects.SelectedItemStyle.ForeColor; } else { dgi.BackColor = dgProjects.ItemStyle.BackColor; dgi.ForeColor = dgProjects.ItemStyle.ForeColor ; } } But the event doesnt fire... what do I need to do? Is there anything to add up??? Thanks </x-turndown>
You missed
AUTOPOSTBACK=true
for the checkbox. Deepak Kumar Vasudevan Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/