Smart    Lucky

Smart Lucky

  • NA
  • 555
  • 637.7k

How to make event in side the repeator control and get it's

Jul 13 2013 3:14 AM
<asp:Repeater ID="rptImages" runat="server" OnItemCommand="rptImages_ItemCommand" OnItemDataBound="rptImages_ItemDataBound" >
                                                    <ItemTemplate>
                                                        <li class="ui-state-default imagethumb">
                                                            <asp:TextBox ID="tbxTitle" placeholder="Enter Image Title" Text='<%# Eval("Title")%>'
                                                                runat="server" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='javascript:;' ToolTip='<%# Eval("imageid") %>' id="ImageClick"><asp:Image ImageUrl="~/Images/fancy_close.png" Height="18" Width="25" ID="imgChkDel" runat="server" imageID='<%# Eval("imageid") %>' isAddedByUser='<%# Eval("isAddedByUser") %>' ToolTip='<%# Eval("imageid") %>' CssClass="kbTest" /> </a><%--<asp:CheckBox ID="imgChkDel" runat="server" imageID='<%# Eval("imageid") %>' isAddedByUser='<%# Eval("isAddedByUser") %>' ToolTip='<%# Eval("imageid") %>'  />--%>
                                                            <asp:Image runat="server" ImageUrl='<%# Eval("ImageURL") %>' ToolTip='<%# Eval("ImageURL") %>'
                                                                BorderWidth="0" ID="imgProperty" />
                                                            <p>
                                                                <asp:CheckBox ID="chkImages" runat="server" imageid='<%# Eval("ImageID") %>' Checked='<%# Convert.ToBoolean(Eval("Checked")) %>'
                                                                    Text="select image" /><br />
                                                                <input type="radio" id="rbDefaultImages" runat="server" onchange="validateRadioButton(this)"
                                                                    value='<%# Eval("ImageURL") %>' checked='<%# Convert.ToBoolean(Eval("Default")) %>' />
                                                                add as cover</p>
                                                        </li>
                                                    </ItemTemplate>
                                                </asp:Repeater>

hi dudes i have a repeator and inside repeator i am calling a image for delete and i have assigned a attributes to image mean tooltip its value is(image id) and i want when i click on image  i can get its tooltip value means (image id) using and also which box should be delete from ui and its image id will store in hidden filed using jquery is it possible can nay one help me.


Answers (1)