Only first character of text inserting into DB

B

bmayer

I am using a SqlDataSource to put data into a database from three
TextBoxes.

The problem is that only the first character from the TextBoxes is
being inserted into the database.

The code:

<InsertParameters>
<asp:ControlParameter ControlID="TextBox2" Name="Text1"
Type="String" />
<asp:ControlParameter ControlID="TextBox3" Name="Text2"
Type="String" />
<asp:ControlParameter ControlID="TextBox4" Name="Text3"
Type="String" />
</InsertParameters>


The schema:

UID int
Text1 nvarchar(4000)
Text2 nvarchar(4000)
Text3 nvarchar(4000)

UID is a primary key, and auto-increments.

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,187
Latest member
RosaDemko

Latest Threads

Top