Print Page | Close Window

Cannot type values into textbox

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=475
Printed Date: 11-Jun-2026 at 4:35pm


Topic: Cannot type values into textbox
Posted By: C0deZ1lla
Subject: Cannot type values into textbox
Date Posted: 05-Oct-2007 at 8:26am
 Hi
 
I am relatively new to IdeaBlade so forgive me if this is quite trivial.
 
All my textboxes on all my forms that I have created using the control binding manager/model etc.. only allow me to type text into them if the characters in the textbox are highlighted or if the characters are not highlighted I have to delete some characters first before I can type in some text.
 
I have created (in the same solution) another set of model classes from the IdeaBlade tutorial database which is loaded in the same SQL server as my database.  When I create a form and use the control binding manager to link to the IdeaBlade database everything works fine.
 
I have checked that I am creating the model/forms in exactly the same way for both. So I think the problem might be related to my SQL database as this appears to be the only thing different.
 
Can anyone suggest what might be causing this problem?
 
Thanks



Replies:
Posted By: davidklitzke
Date Posted: 05-Oct-2007 at 8:47am
My guess is that you are not stripping the trailing white space.  For example, if the TextBox is "FirstName" and the value is "Nancy", you can type in characters after the "y" in Nancy, but if the value is "Nancy" + enough spaces to fill the TextBox, you will get the behavior you describe.
 
The difference in performance between the two databases could be that one database is returning values with trailing white space, and the other database is not.


Posted By: C0deZ1lla
Date Posted: 05-Oct-2007 at 8:59am
Hi
 
Yeah - you are right, I had set the field type to nchar not nvarchar, I had checked this before by changing a few fields to nvarchar but I used the same test data and did not delete the whitespace.. duh :)
 
Many thanks
 
 



Print Page | Close Window