Geeks With Blogs

News My Blog has been MOVED to
Michael Freidgeim's OLD Blog My Blog has been MOVED to

I wanted to dynamically create content of ASP.NET TableCell control. It should have some text and image.
I've tried to use the code

cell.Text = "Text";

But the text wasn't shown. The reason is that if TableCell has child controls, the text value is ignored during rendering. See TableCell.RenderContents in Reflector.

The valid way is the following:
Label lbl=new Label();

Posted on Thursday, January 10, 2008 11:03 AM ASP.NET | Back to top

Comments on this post: TableCell.Text property is ignored if there are child controls

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Michael Freidgeim | Powered by: