HElp On link Button syntax

Posted by Vijayar under C# on 2/23/2012 | Points: 10 | Views : 999 | Status : [Member] | Replies : 4
<asp:LinkButton id="LinkButton2" Text="Apply" CommandName="Id" CommandArgument='<%= item.JobId %>' CssClass="style" OnCommand="LinkButton2_Command" Runat="server"/>

How to assign id .I need Id from database only and catch it on linkcommand.What is my mistake in this syntax

vijaya


Responses

Posted by: Hmanjarawala on: 2/23/2012 [Member] Bronze | Points: 25

Up
0
Down
in this case your link button should be member of other container controls like Gridview, DataList etc.

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

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

Posted by: Vijayar on: 2/23/2012 [Member] Starter | Points: 25

Up
0
Down
HI
Can u send me the code.which helps me alot.I am placing a link button in panel.Help me in design part

vijaya

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

Posted by: Sksamantaray on: 2/23/2012 [Member] Silver | Points: 25

Up
0
Down
is this linkbutton inside a gridview?

Thanks,
Sanjay

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

Posted by: Vijayar on: 2/23/2012 [Member] Starter | Points: 25

Up
0
Down
It is not inside a grid view

vijaya

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

Login to post response