![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a multiline TextBox that I want to display the text used to create a control in an apsx file. I want each of these to be on a separate line in the TextBox. The only way I know of to place things on separate lines in a TextBox without doing it programmatically is the following: asp:TextBox ID="txtMultiLine" runat="server" TextMode="MultiLine" Line 1 Line 2 Line 3 /asp:TextBox However, if I do something like the following: asp:TextBox ID="txtMultiLine" runat="server" TextMode="MultiLine" NJS:MyCustomControl ID="MyCtrl1" runat="server"/ NJS:MyCustomControl ID="MyCtrl2" runat="server"/ NJS:MyCustomControl ID="MyCtrl2" runat="server"/ /asp:TextBox I receive a Parser Error that says: Parser Error Message: The 'Text' property of 'asp:TextBox' does not allow child objects. Is there any way to avoid this problem without adding the text programmatically? Thanks. -- Nathan Sokalski njsokalski (AT) hotmail (DOT) com http://www.nathansokalski.com/ |
#3
| |||
| |||
|
|
Try something like <NJS:MyCustomControl ID="MyCtrl1" runat="server"/ -- Eliyahu Goldin, Software Developer Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net "Nathan Sokalski" <njsokalski (AT) hotmail (DOT) com> wrote in message news:u6V3qyaTIHA.4360 (AT) TK2MSFTNGP06 (DOT) phx.gbl... I have a multiline TextBox that I want to display the text used to create a control in an apsx file. I want each of these to be on a separate line in the TextBox. The only way I know of to place things on separate lines in a TextBox without doing it programmatically is the following: asp:TextBox ID="txtMultiLine" runat="server" TextMode="MultiLine" Line 1 Line 2 Line 3 /asp:TextBox However, if I do something like the following: asp:TextBox ID="txtMultiLine" runat="server" TextMode="MultiLine" NJS:MyCustomControl ID="MyCtrl1" runat="server"/ NJS:MyCustomControl ID="MyCtrl2" runat="server"/ NJS:MyCustomControl ID="MyCtrl2" runat="server"/ /asp:TextBox I receive a Parser Error that says: Parser Error Message: The 'Text' property of 'asp:TextBox' does not allow child objects. Is there any way to avoid this problem without adding the text programmatically? Thanks. -- Nathan Sokalski njsokalski (AT) hotmail (DOT) com http://www.nathansokalski.com/ |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |