日期:2014-05-17 浏览次数:20896 次
<asp:TemplateField>
<ItemTemplate>
<div>
<span id="Edit" title="Click to EDIT this item" onclick="Edit()"class="icon-edit2 info-tooltip"></span>
<span class="icon-delete2 info-tooltip" onclick="if(confirm('Are you sure want to delete?')) deleteSale(this, <%# Eval("LeadID") %>);return false;"title="Click to DELETE this item"></span>
</div>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" Width="80px" />
</asp:TemplateField>
function Edit() {
var cb = $('#<%= gvLeads.ClientID %>');
if (cb) {
window.location.href = '<%= Page.ResolveUrl("~/members/my-leads/ManageLead.aspx") %>?lid=' + cb.prev().val() + '&SortBy=' + $('#<%= hfSortBy.ClientID %>').val() +'&SortDirection=' + $('#<%= hfSortDirection.ClientID %>').val()
};
}
function Delete() {
$('#<%= gvLeads.ClientID %>').each(function () {
deleteLead($(this), $(this).prev().prev().val());
});
}