Results 1 to 5 of 5

Thread: binding of hidden textbox

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2002
    Location
    Austria
    Posts
    52

    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

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    If its not visible why bind it? Can't you just get the data from the datasource directly?

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2002
    Location
    Austria
    Posts
    52
    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.

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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?

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2002
    Location
    Austria
    Posts
    52
    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
  •  



Click Here to Expand Forum to Full Width