Updating lable outside the update panel

Posted by Krishnasamy2008 under ASP.NET AJAX on 4/8/2011 | Points: 10 | Views : 3352 | Status : [Member] | Replies : 2
Hi Friends,
I need to update the label(total records count) outside the update panel when performing the gridview delete operation.Initialy is not problem for updating total records count.Below i have mentioned my aspx and codebehind format.kindly can anyone guide me.



default.aspx
-------------------
<asp:Label ID="lblRecordCount" CssClass="labelFonts" runat="server"></asp:Label>

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="grdview" runat="server" />
<asp:TemplateField HeaderText="Delete">
<ItemTemplate>
<asp:ImageButton ID="imgBtnDelete" CommandArgument='<%#Container.DataItem("ID")%>' CommandName="Delete" runat="server" />
</ItemTemplate>
</asp:TemplateField>
</ContentTemplate>
</asp:UpdatePanel>

default.aspx.vb
-------------------
Protected Sub grdview_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles grdview.RowCommand
If e.CommandName = "Delete" Then
'Performing delete and binding operations
End If
End Sub

Thanks and Regards,
Krishna.K




Responses

Posted by: Prabhakar on: 4/8/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Krishnasamy2008

in ur code where u write count ur record on lable . .



Best Regard's
Prabhakar

Krishnasamy2008, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 4/11/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Please post your requirement in brief...

Thanks
Karthik
www.f5Debug.net

Krishnasamy2008, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response