Then create a subclass of HtmlTableCell... In C#
internal class HTCHtmlTableCell : HtmlTableCell
{
internal HTCHtmlTableCell(string htc)
{ HTC =3D htc; }
private strin m_htc;
public string HTC
{ get { return m_htc; }
set { m_htc =3D value; }
}
protected override void Render(HtmlTextWriter writer)
{ writer.Write(HTC); }
}
....
row.Cells.Add(new HTCHtmlTableCell("you htc here"));
[quoted text, click to view] "localhost" <primpilus@cohort.ces> wrote in message =
news:ven0e0tjai9gk45ae3an8e725n51bs9g6q@4ax.com...
Thanks, but that actually adds a <TD> inside the <TR>. I need to put
my HTC behavior between the <TR> and <TD>...
On Mon, 28 Jun 2004 10:37:01 -0700, "Kris"
[quoted text, click to view] <Kris@discussions.microsoft.com> wrote:
>try this
>
>HtmlTableCell testCell =3D new HtmlTableCell;
>testCell.Controls.Add( new LiteralControl("<beh1:behDiv>" );
>testRow.Add(testCell); 'add the cell to the row
>'then add the row to the table
>
>sorry, i don't use C#
>
>"localhost" wrote:
>
>>=20
You could also create the whole table as LiteralControls and not as
HtmlTable... Or GenericControl.
Hmm. Have you tried to use Table class instead of HtmlTable instead?
Firsttry this. Scott's approach is most advanced and very good. The most
nasty and "not really asp.net" like is my forst preposition.
--
RobertK
{ Clever? No just smart. }
[quoted text, click to view] "localhost" <primpilus@cohort.ces> wrote in message
news:ven0e0tjai9gk45ae3an8e725n51bs9g6q@4ax.com...
>
>
> Thanks, but that actually adds a <TD> inside the <TR>. I need to put
> my HTC behavior between the <TR> and <TD>...
>
>
> On Mon, 28 Jun 2004 10:37:01 -0700, "Kris"
> <Kris@discussions.microsoft.com> wrote:
>
> >try this
> >
> >HtmlTableCell testCell = new HtmlTableCell;
> >testCell.Controls.Add( new LiteralControl("<beh1:behDiv>" );
> >testRow.Add(testCell); 'add the cell to the row
> >'then add the row to the table
> >
> >sorry, i don't use C#
> >
> >"localhost" wrote:
> >
> >>
> [snip]
>