P
Praveen Naregal
Hello all,
I am trying to set the "a href" attribute of HtmlTableCell in ASP.NET from
VS.NET. The attribute is not getting set and hyperlink is not getting
displayed. Can anybody point out the error? A piece of code demonstrating
setting this property would be helpful.
System.Web.UI.HtmlControls.HtmlTableCell cell1 = new
System.Web.UI.HtmlControls.HtmlTableCell();
cell1.InnerText = sub;
string val = "default.aspx?id="+id+"AcntName="+ActiveAcnt;
cell1.Attributes.Add("nowrap","nowrap");
cell1.Attributes.Add("a href",val);
item.Cells.Add(cell1);
Thanks in advance
Praveen Naregal
I am trying to set the "a href" attribute of HtmlTableCell in ASP.NET from
VS.NET. The attribute is not getting set and hyperlink is not getting
displayed. Can anybody point out the error? A piece of code demonstrating
setting this property would be helpful.
System.Web.UI.HtmlControls.HtmlTableCell cell1 = new
System.Web.UI.HtmlControls.HtmlTableCell();
cell1.InnerText = sub;
string val = "default.aspx?id="+id+"AcntName="+ActiveAcnt;
cell1.Attributes.Add("nowrap","nowrap");
cell1.Attributes.Add("a href",val);
item.Cells.Add(cell1);
Thanks in advance
Praveen Naregal