Computing.Net > Forums > Web Development > Multiline text box control

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Multiline text box control

Reply to Message Icon

Name: rajoo_sh
Date: January 29, 2005 at 02:09:23 Pacific
OS: win2k
CPU/Ram: P-III
Comment:

Hi!

on my web form I'm using a multiline text box. My problem is that when i save this data in a memo field (MS-Access) it stores only first word of first line, following is the code lines:

SQL = "Insert into mProductDetails(Features)Values(?)"
iSQL = New OleDb.OleDbCommand(SQL, MyConnection)


iSQL.Parameters.Add(New OleDb.OleDbParameter("@Feat", OleDb.OleDbType.VarChar))

SQL.Parameters("@Feat").Value=txtFeatures.Text

iSQL.ExecuteNonQuery()

Above code runs fine, the only problem is that it stores only first word of the first line, i want to store the entire contents of the multiline text box including Carrage Returns.

Kindly help

Regards
Rajeev



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: January 29, 2005 at 14:04:35 Pacific
Reply:

Because you mention carriage returns I am assuming that you mean a text area. There is no such thing as a multi-line text box.

I think the problem might be in the database. What type of field is the fetures colum in the database? Does it accept carriage returns?

Michael J


0

Response Number 2
Name: rajoo_sh
Date: January 30, 2005 at 20:15:04 Pacific
Reply:

Hi Michael!
Itz working fine :) actually in my access database table, i did not scroll down the field, when i did so it showed me the everything.

Thanx for the reply
regards
rajiv


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Printing webpage without ... html help!!



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Multiline text box control

PHP Search text box www.computing.net/answers/webdevel/php-search-text-box/1741.html

can't edit or add records - asp.net www.computing.net/answers/webdevel/cant-edit-or-add-records-aspnet/109.html

How to assign value to mask text box dynamica www.computing.net/answers/webdevel/how-to-assign-value-to-mask-text-box-dynamica/4209.html