Sajid Khan

Sajid Khan

  • NA
  • 56
  • 11.3k

how to get gridview label value in javascript?

Dec 8 2016 1:04 AM
How to get lable(hidden) value from gridview using javascrip?
 
here's the code: 
 
<asp:TemplateField HeaderText="Close Date (M-DD-YY)">
<ItemTemplate >
<asp:Label ID="txtDistCd" runat="server" Text='<%#Eval("dist_cd") %>' Visible="False" />
<asp:Label ID="lblStartDt" runat="server" Text='<%#Eval("start_date") %>' Visible="False" />
<asp:TextBox ID="txtCloseDate" runat="server" Width="80px" Text='<%#Eval("close_date", "{0:MM-dd-yyyy}")%>'></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtCloseDate"
OnClientDateSelectionChanged ="CheckForBackDate"
OnClientShown="ChangeCalendarView" PopupButtonID="imgStartDate" Format="dd-MM-yyyy" >
</cc1:CalendarExtender>
<asp:ImageButton ID="imgStartDate" runat="server" ImageUrl="~/images/calender.jpg"
Width="20px" />
</ItemTemplate>
</asp:TemplateField>

Answers (3)