Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Participant
783 Points
301 Posts
Oct 06, 2009 03:41 PM|LINK
I don't absolutely need to do it this way, but am curious about why it isn't working.
sb.Append("<td style='width: 40px; text-align: center;'>"); sb.Append("<asp:TextBox id='nbrDays' runat='server' />"); sb.Append("</td>");
It produces the expected html output:
<td style='width: 40px; text-align: center;'><asp:TextBox id='nbrDays' runat='server' /></td>
But it does not display on the page. If anyone has an idea why it doesn't render on the page, I'd appreciate hearing it.
(And any suggestions on how to get a TextBox in there would also be nice.)
- Tinker
T. R. Tinker
Participant
783 Points
301 Posts
StringBuilder question
Oct 06, 2009 03:41 PM|LINK
I don't absolutely need to do it this way, but am curious about why it isn't working.
sb.Append("<td style='width: 40px; text-align: center;'>");
sb.Append("<asp:TextBox id='nbrDays' runat='server' />");
sb.Append("</td>");
It produces the expected html output:
<td style='width: 40px; text-align: center;'><asp:TextBox id='nbrDays' runat='server' /></td>
But it does not display on the page. If anyone has an idea why it doesn't render on the page, I'd appreciate hearing it.
(And any suggestions on how to get a TextBox in there would also be nice.)
- Tinker