LinkButton - DataGrid!!

A

Adam Knight

Hi all,

I have to link buttons in a datagrid.

1) <asp:TemplateColumn HeaderText="Name:">
<ItemTemplate>
<asp:LinkButton ID="lnkBtnArea" CommandName="dg_DisplaySubs"
Runat="server">Test</asp:LinkButton>
</ItemTemplate>
</asp:TemplateColumn>

When clicked the required sub is called, no problems.

2)<asp:TemplateColumn HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px" Runat="server">
<ItemTemplate></ItemTemplate>
<HeaderTemplate>
<asp:LinkButton ID="lnkBtnDisplayMains"
CommandName="dg_DisplayMains" Text="(&uarr; Up)"
Runat="server"></asp:LinkButton>
</HeaderTemplate>
</asp:TemplateColumn>

When clicked the required function doesn't seem to execute.

Can anyone give me a heads up on this???

Thanx.
 

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
474,261
Messages
2,571,041
Members
48,769
Latest member
Clifft

Latest Threads

Top