Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > LinkButton - DataGrid!!

Reply
Thread Tools

LinkButton - DataGrid!!

 
 
Adam Knight
Guest
Posts: n/a
 
      08-04-2005
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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linkbutton does not look like a linkbutton Sathyaish ASP .Net 3 09-08-2005 09:41 AM
Linkbutton does not look like a linkbutton Sathyaish ASP .Net Datagrid Control 1 09-08-2005 08:44 AM
User Control + <asp:LinkButton> = JavaScript Error Fresh Air Rider ASP .Net 0 03-02-2004 10:34 PM
LinkButton and page error in datagrid Vik ASP .Net 0 06-30-2003 09:33 PM
Disabling LinkButton using JavaScript? Jeelz ASP .Net 2 06-28-2003 08:13 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57