Hi i am dynamically creating link buttons as shown below. the problem is how to add the link button in the place of "linktopage". currently the link button is added below the table.
for(i=0;i<100;i++)
{
LinkButton lnk = new LinkButton();
lnk.ID = "lnk" + i;
lnk.Text = "open profile";
lnk.Click += new System.EventHandler(lnk_click);
this.Page.Form.Controls.Add(lnk);
htmlstring += "<tr style='height:30px;'>" +
"<td>" + firstname + "</td>" +
"<td>" + surname + "</td>" +
"<td>" + email + "</td>" +
"<td>" + mobile + "</td>" +
**"<td>" + linktopage + "</td>" +**
"</tr>";
}

linktopagecomes from?linktopageis an action page, like, executing a page, or executing a command? Do you want this to be synchronously or asynchronously?POST, if you use theCommandinsteadClickevent you can even pass variables to your method