This is a discussion on "Creating Forum - Struggling with Text Box Size" within the ASP.NET Forum section. This forum, and the thread "Creating Forum - Struggling with Text Box Size are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Creating Forum - Struggling with Text Box Size
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Creating Forum - Struggling with Text Box Size
Hi, im trying to create my own forum site using .Net
When a user creates a new post the text gets saved in a database The 1 thing that im struggling on is displaying that post on the web. The obvious way would be to show the text within an asp:textbox, but because i dont know the length on the text i dont know how big to create the text box. If i just place the text into a table it loses all the formating - So what do i do?? Do i have to save the text in the database with html tags around it?? if so, how do i do it?? |
|
|
|
|||
|
Re: Creating Forum - Struggling with Text Box Size
Hmmm.....
You don't have to use TextBox. Maybe you can just use a div control. Look on the ToolBox of Visual Studio under Html. You can use the div control and possibly set the text in the InnerHtml property. Let me know if this doesn't work. John Ginzo GinzoTech Solutions http://www.GinzoTechSolutions.com |
|
|||
|
Re: Creating Forum - Struggling with Text Box Size
Here's what you need:
<textarea name="text" cols="60" rows="8"></textarea> Well, its obvious what "cols" and "rows" mean, it's more an HTML question than a .Net question, but well hope it helps. |
![]() |
| Tags |
| text box size |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| creating a forum | ziplock122949 | Website Planning | 7 | Oct 25th, 2007 00:14 |
| creating a forum | Qwandri | Web Page Design | 3 | May 29th, 2007 09:46 |
| Creating a forum - Help | lifeinslowmotion | Web Page Design | 2 | Nov 23rd, 2005 15:39 |
| text size | dannygoor | Web Page Design | 6 | Jan 9th, 2004 16:24 |