Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

GridView without Refresh when m deleting record in gridview

$
0
0

Hi,

i want to delete record in gridview without using Script Manager..

want to delete using ajax..

<asp:GridView ID="GridView1" runat="server" CssClass="table table-hover" AllowPaging = "true" GridLines="None" AutoGenerateColumns="False" OnPageIndexChanging="GridView1_PageIndexChanging">
<Columns>
<asp:TemplateField HeaderText="Order Id">
<ItemTemplate>
<asp:Label ID="lbPassport" runat="server" Text='<%# Bind("[Order Id]") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="30px" />
</asp:TemplateField>

<asp:TemplateField HeaderText="Status">
<ItemTemplate>
<a href="#" id="<%# Eval("[Order Id]") %>" onclick='Check(this.id)' class="popup">Show Details </a>

</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="30px" />
</asp:TemplateField>

>

</Columns>
</asp:GridView>

<Script>

function Check(obj)

{

here i il get id..passing this id to web Method want to delete that record without Page Refreshing

}

</script>

thanks


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>