|
-
Dec 12th, 2002, 11:21 AM
#1
Thread Starter
Member
binding of hidden textbox
hi all...
i've problems with a hidden textbox (property visible=false).
when i bind the textbox to a db-field it is not filled with data. the textbox gets the value from a functioncall and should not be visible to the user. when i set visible=true it works...
is it possible to bind a variable to a db-field or are there other solutions how to do this?
thanks
robert
-
Dec 12th, 2002, 11:33 AM
#2
If its not visible why bind it? Can't you just get the data from the datasource directly?
-
Dec 12th, 2002, 11:37 AM
#3
Thread Starter
Member
i have two textboxes:
txtPasswordDecrypted
txtPasswordEncrypted
the user can only modify the textbox txtPasswordDecrypted... the TextChanged-Event calls a function which encryptes the text in txtPasswordDecrypted and puts it into the field txtPasswordEncrypted which should be stored in the db.
-
Dec 12th, 2002, 11:42 AM
#4
So can't you just get the encrypted text from the datasource, then decrypt it and show it in the textbox without binding. Then when the record changes or the data is 'saved' just encrypt it back directly in the datasource?
What is the datasource? A dataset? Class?
-
Dec 12th, 2002, 11:48 AM
#5
Thread Starter
Member
the datasource is a dataset... you are right - i can do this without binding.
thank you for your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|