Results 1 to 2 of 2

Thread: Textboxes

  1. #1
    Join Date
    Dec 1969

    Default Textboxes

    I have some asp.net textbox controls on a page. When a user enters values for the first two fields I need to do a calculation and display it in the third box. I know you can do it with javascript but how with asp.net?<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Textboxes

    if your boxes are called<BR>box1, box2, box3, ...<BR><BR>dim ctl as textbox<BR>dim sum as integer<BR>for i = 1 to 10<BR> ctl = findcontrol("box" & i)<BR> if isnumeric(ctl.text) then<BR> sun += int16.parse(ctl.text)<BR> else<BR> ctl = findcontrol("box" & (i + 1).ToString)<BR> ctl.text = sum<BR> i = 11<BR> end if<BR>next i

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts