Click here to Skip to main content
15,885,182 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My design view is like this
***********************************************************************
<asp:Accordion ID="acc" runat="server" SelectedIndex="0" EnableViewState="false"
OnItemDataBound="Accordion1_ItemDataBound" FadeTransitions="false" FramesPerSecond="40" TransitionDuration="250" AutoSize="None" RequireOpenedPane="false" SuppressHeaderPostbacks="true" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent"> <contenttemplate> <asp:HiddenField ID="txt_categoryID" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"UDT_GSC_No") %>' /> <asp:GridView CssClass="GrdalternateItemStyle" ID="GridView1" > <columns> <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Uploaded Certificates"> <itemtemplate> <%#DataBinder.Eval(Container.DataItem, "DTM_document_kdesc")%> <footertemplate> <asp:CheckBox ID="CheckBox1" runat="server" Text="Editional Documents To be Submitted" OnCheckedChanged="CheckBox1_CheckedChanged" AutoPostBack="true" /> <asp:TemplateField> <itemtemplate> <asp:ImageButton runat="server" ID="imgbtnView" ImageUrl="~/Images/lens.png"> <footertemplate> <asp:Button ID="Button1" CssClass="button" runat="server" Text="Verify" />
here i want "CheckBox1" id in code behind am trying something like this
***************************************************************************
GridView grd = new GridView();
grd = (GridView)acc.FindControl("GridView1");

CheckBox chk = (CheckBox)grd.FindControl("CheckBox1");

if (chk.Checked)
{
Panel1.Visible = true;
UpdatePanel1.Update();
}
else
{
Panel1.Visible = false;
UpdatePanel1.Update();
}
**************************************************************************
but its not working can any one please tell me how to solve this??

thanking you
(Keerthi Kumar)
Posted
Updated 16-Oct-14 23:29pm
v2
Comments
bkthebest 18-Oct-14 1:27am    
Please provide your full code and what error you are getting.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900