<div>
<ul class="ul-Clinical" style="margin-removed 5px;">
<asp:Repeater ID="rptAllMembers" runat="server">
<ItemTemplate>
<li class="ul_Clinical_li1" style="margin-removed 10px; margin-removed 15px; border: 1px solid #ccc;
width: 100px; height: 100px;" önclick="clickshowtick('<%# Eval("TherapistStaffID") %>')">
<div id='<%# Eval("TherapistStaffID") %>' class="">
</div>
<img src="../images/Avatar.png" alt="TimeSheet" style="width: 50px;" /><br />
<asp:Label ID="lblUsername" runat="server" ToolTip='<%# Eval("FirstName") + " " + Eval("LastName") %>'
Text='<%# Eval("FirstName") + " " + Eval("LastName") %>'></asp:Label>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
</div>
This is my for repeater i am implementing the tick class on it of jquery.and getting id from my table.in eval id='<%# Eval("TherapistStaffID") %>'
<div class="DivGeneral">
<asp:Label ID="lblSearch" runat="server" Text="Search:" Width="50px"></asp:Label>
<asp:TextBox ID="txtSearch" runat="server" CssClass="sf" Width="423px">
</asp:TextBox>
<%----%>
<asp:HiddenField ID="hfSelectedMembeID" runat="server" Value="" />
</div>
this my hidden field in which i want to put my repeater id.
function clickshowtick(tckclass) {
if ($('#' + tckclass).hasClass("tick_img"))
$('#' + tckclass).removeClass("tick_img");
else
$('#' + tckclass).addClass("tick_img");
$("#<%=hfSelectedMembeID.ClientID %>").val(tckclass);
var str;
str = $("#<%=hfSelectedMembeID.ClientID %>").val(tckclass) + ',' + tckclass }
this is my javascript code at the top of my design class.
here is a problem that i dont know how to get the id from repeater link button on click.and after that how to put it in hidden field
and after that how can i get it at code behind.
at last how to store it in database.
please help me.
thxxxxxxxxxxxxxxxxxxxx