<asp:datagrid>

K

Kerri

Hi,

I have an <asp:datagrid>

I have a template column as below within my datagrid.

<asp:TemplateColumn HeaderText="Update" HeaderStyle-Font-
Bold="True">
<ItemTemplate>
<asp:Button ID="btnUpdate" Runat="server"
CssClass="submitaction3" Text="Edit"
OnClick="UpdateQuote"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>

On Clicking my the Edit button I want to call a Sub in my
code behind. Thsi gives me a an Error. How can I call my
Sub when the user clicks on EDit??

Thanks,
Kerri.
 
M

Michael Tkachev

Hi,

Protected Sub UpdateQuote(ByVal sender As Object, ByVal e As EventArgs)
' Your code
'Response.Write("Test")
End Sub

Bye
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,192
Latest member
KalaReid2

Latest Threads

Top