Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,

I just want to know "How to add Linkbutton to return datatable from Query"

Regards,
Prashant
Posted

1 solution

C#
TableCell tc1 = new TableCell();
tc1.Wrap=true;
this.lnkRecvGpNo=new LinkButton();
lnkRecvGpNo.Text="RecvGp No";
this.lnkRecvGpNo.Click+=new EventHandler(lnkRecvGpNo_Click);
tc1.Controls.Add(lnkRecvGpNo);
private void lnkRecvGpNo_Click(object sender, EventArgs e)
{
Response.Write("hi alok how r u?");
}
 
Share this answer
 
Comments
Sandesh M Patil 25-Aug-10 8:13am    
So you ask question and also giving answer....:)

Why u ask the question then?
Sandeep Mewara 25-Aug-10 12:55pm    
If your point was to post a Tip then go here: http://www.codeproject.com/Tips/post.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900