HyperLink hl=new HyperLink ( ); hl.ID="HL"+ProdID+oRd [ "ProductAccRecNo" ].ToString ( ); hl.NavigateUrl="~/Products.aspx"; hl.Target="_blank"; hl.Text=" "+c_TLK.Get_1; tc1.Controls.Add ( hl ); tr1.Cells.Add ( tc1 ); tr1=new TableRow ( ); tr1.ID="R1"+ProdID+iCount++; tb1.Rows.Add ( tr1 ); tc1=new TableCell ( ); tc1.ID="CP"+iCount++; tc1.Width=Unit.Percentage ( 8 ); tc1.CssClass="ProdStatTextBlackLBorderLtBlueCM"; //tc1.Text=oRd [ "ProductAccItemID" ].ToString ( ); lb1=new LinkButton ( ); lb1.ID="HL"+ProdID+oRd [ "ProductAccRecNo" ].ToString ( ); //lb1.PostBackUrl="~/Products.aspx"; // lb1.NavigateUrl="~/Products.aspx"; //lb1.Target="_blank"; lb1.Text=oRd [ "ProductAccItemID" ].ToString ( ); //lb1.Click+=new EventHandler ( LinkButton1_Click ); tc1.Controls.Add ( lb1 ); tr1.Cells.Add ( tc1 ); lb1.Click+=new EventHandler ( lb1_Click );