JanVolleyM
Programmer
This problem is driving me crazy and I can't find anything about this anywhere. I am using SQLServer 2000 and VS2005. My database table has a field of TEXT data type. I want to allow the user to input a value for this field via a formview, so I've created an asp:textbox control on the formview:
<asp:TextBox ID="TestEvaluationMethodsTextBox" runat="server" TextMode="multiLine" Width="890px" Rows="12" Text=',%# Bind("TestEvaluationMethods") %>'</asp:TextBox>
When I click the Save button, the value of TestEvaluationMethodsTextBox is cut off at 3738 characters for some reason when I'm inputting 6000 characters. A weird thing is that this field was originally a VARCHAR(4000) in the db and I modified to the TEXT data type and 3738 is kind of close to 4000, but don't know if that has anything to do with it.
When I run the application in debug mode, the value for this field in my form object is not even getting anything more than 3738 characters, so I can't even get past that part. So the problem is not with any code that updates the db because the value is truncated before it even gets that far. It seems to be truncated immediately.
Can anyone figure out what I'm doing wrong?
Jan
<asp:TextBox ID="TestEvaluationMethodsTextBox" runat="server" TextMode="multiLine" Width="890px" Rows="12" Text=',%# Bind("TestEvaluationMethods") %>'</asp:TextBox>
When I click the Save button, the value of TestEvaluationMethodsTextBox is cut off at 3738 characters for some reason when I'm inputting 6000 characters. A weird thing is that this field was originally a VARCHAR(4000) in the db and I modified to the TEXT data type and 3738 is kind of close to 4000, but don't know if that has anything to do with it.
When I run the application in debug mode, the value for this field in my form object is not even getting anything more than 3738 characters, so I can't even get past that part. So the problem is not with any code that updates the db because the value is truncated before it even gets that far. It seems to be truncated immediately.
Can anyone figure out what I'm doing wrong?
Jan