i am having error ....details are
ASP.Net application...in which I have a textbox
<asp:TextBox ID="Other" TextMode=SingleLine CssClass="serviceBox" Width="250" Height="45" Runat="server" MaxLength="1000" /></asp:TextBox>
and this textbox is in a <asp:Repeater > which has the count of 35.
The textbox value is stored in the SQL DB
And the field data-type in the SQL DB is VARCHAR(1000)
Now the problem comes when I enter the text in the textbox with length more than 100(hundred) characters . The error that shows up is
----------------------
String or binary data would be truncated. The statement has been terminated.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: String or binary data would be truncated. The statement has been terminated.
Stack Trace:
[SqlException: String or binary data would be truncated.
The statement has been terminated.]
System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +723
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +195
XXXXXX.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)
XXXXXX.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
XXXXXXL.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues)
XXXXXX.Utilities.InsertCustomerService(Int32 MemberID, String OfferID, String CantAccess, String WontFunction, String Other)
----------------------
Now what i couldnt get is....the field length gives error when i give text more than 100 characters.......whats the deal with it..plz help asap!