|
|
ASP.NET and textarea how to for .net rookie
Posted: 10 Jul 06 10:43 AM
|
fiogf49gjkf0d How do you add a textarea into a aspx.net page inside a form that runat=server? Does it not work like textbox ie. asp:textbox runat=server id=mytxtbx? |
|
|
|
Re: ASP.NET and textarea how to for .net rookie
Posted: 10 Jul 06 11:39 AM
|
fiogf49gjkf0d Hi David,
I haven't got VS up in front of me, but the textarea is just a normal asp input box if you look at the options, there’s something like text type or text option, here you select multiline and that’s it, you can then use style to do the height and width.
-- Duncan
|
|
|
| |
|
Re: ASP.NET and textarea how to for .net rookie
Posted: 10 Jul 06 12:30 PM
|
fiogf49gjkf0d So you don't have to specify rows and columns anymore?
textbox works for textbox and for textarea with the multiline parameter?
I really got to get a handle on asp.net! |
|
|
| |
|
Re: ASP.NET and textarea how to for .net rookie
Posted: 10 Jul 06 12:37 PM
|
fiogf49gjkf0d You can use the Rows and Columns properties if you want. For example...
asp:TextBox ID="TextBox1" runat="server" Rows=5 Columns=50 TextMode="MultiLine" |
|
|
|
Re: ASP.NET and textarea how to for .net rookie
Posted: 10 Jul 06 12:41 PM
|
fiogf49gjkf0d Originally posted by David Nunnally
Frank, how do you do the "codeblock" thing as in your post. |
|
surround your text with <pre>Enter your lines of text as you want them displayed.</pre> tags. |
|
|
|