Forum Moderators: open

Message Too Old, No Replies

asp beginner

need to fill multiple text boxes with data

         

donnybak

4:15 pm on Jun 7, 2004 (gmt 0)



I am very new to ASP and javascript and am lost as to where to find help.
I have several test boxes on a form, and if the user changes the value in the first test box, i want all the others to be populated with that value. I am trying to use the onchange event but cannot get it to work. The name of each box is route_1, route_2 etc.. where I get the numeric part of the name from which line I am on by a record_count. I assume I will also need to capture this numeric # so that I can traverse the following text boxes and change their data. I didn't write this code initially and just need to add this functionality to the existing code. Any help or examples would be appreciated.

korkus2000

1:45 pm on Jun 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld donnybak,

With asp you must submit the page back to the server or navigate to the server with querystrings. The asp is all processed before the page is delivered to the browser. You can write all data to javascript arrays on the page so that when you use onchange it will use javascript to update your drop downs. The problem with this is it can be very confusing and complicated.

I suggest you resubmit the page with formname.submit() or just set the asp up to accept querystrings to repopulate your box.