Creating Forum - Struggling with Text Box Size

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 18th, 2007, 12:52
New Member
Join Date: Apr 2007
Location: UK
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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??
Reply With Quote

  #2 (permalink)  
Old Apr 18th, 2007, 13:37
Junior Member
Join Date: Apr 2007
Location: Florida
Age: 40
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3 (permalink)  
Old Apr 18th, 2007, 13:45
Up'n'Coming Member
Join Date: Aug 2006
Location: Peru
Age: 21
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply

Tags
text box size

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 00:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43