Results 1 to 2 of 2

Thread: populating a txtbox

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    populating a txtbox

    I have two txtboxs. Txtbox1 I let the user populate with a date then I want to populate txtbox2 with a date that is 7 days later. I'm using this code in my codebehind page to populate txtbox2, which is working fine.

    txtbox2.Text = DateAdd(DateInterval.Day, 7, CDate(txtbox1.Text))

    What I want to know, is there a way to have txtbox2 populate as soon as txtbox1 is filled without having to call the page, so the user knows they won't have to fill in the second date?

    thanks,
    eye

  2. #2
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    You will have to use javascript to do it.

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