<asp:DataList ID="dListStudentNames" runat="server"> <HeaderTemplate> <ItemTemplate> <input type="button" id="btnStart" value="Start GD"; onclick="return StartGD();" /> </ItemTemplate> </HeaderTemplate> <ItemTemplate> <table style="border: thin solid #FFFF00;"> <tr bgcolor="#a9b8a9"> <td> <input type="hidden" id="gd_id1" value='<%#Eval("GroupId") %>'/> <asp:Label ID="lblSlno" runat="server" Text="<%# Container.ItemIndex+1 %>"></asp:Label> <asp:Label ID="lblStudentName" runat="server" Text='<%#Eval("Studentname") %>'></asp:Label> <input id="gd_student_<%# Container.ItemIndex%>" type="hidden" value='<%#Eval("StudentId") %>' /> </td> </tr> <tr> <td > </td> </tr> </table> </ItemTemplate> </asp:DataList
document.getElementById('<%= gd_id1.ClientID %>').value
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)