Saturday, March 24, 2012

UpdatePanel and Gridview

English:

hi Everybody...i have a control in my TemplateField (a collum of the gridview) with two controls (lnkDelete and lnkEdit), and it's in a UpdatePanel (ASP.NET AJAX). I wanna that when a user to click, on the edit controls...it'll do a postback... How do I configure mine UpdatePanel (Triggers)?I'm Sorry, but my english isn't good...tanks you


Thanks everybody

Portuguese:

Olá, eu tenho um controle em uma templatefield (coluna de um gridview) com dois controles...(lnkDelete e lnkEdit), dentro de um UpdatePanel (ASP.Net AJAX). Eu quero que quando o usuario clique em no controle lnkEdit (de qualquer registro) a pagina fa?a um postback... (lembrando que o gridview está no updatepanel).

Obrigado

Put your code here so we can help you.

WS


Thanks

<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="lnkExcluir" runat="server" CausesValidation="False" CommandName="Delete" Text="Excluir" OnClientClick="return confirm('Deseja Realmente Excluir esta Noticia?');"></asp:LinkButton>
<asp:LinkButton ID="lnkEditar" runat="server" CausesValidation="False" CommandName="Editar" Text="Editar"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>

After i'm programming on event RowCommand of the my GridView... (when i do my edition)... and i need a postback on linkbutton "lnkEdit"...

is it possible ??

No comments:

Post a Comment