Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Setting list box values


Message #1 by tareyg@y... on Sat, 24 Feb 2001 20:51:54
I am keeping track of start and stop dates for a project. 

I have six list boxes created with the <select> element. They represent 

startMonth, 

startDay, startYear, stopMonth, stopDay, stopYear. I use javascript to 

update the 

day lists to display the correct number of days depending on the the 

month. But I 

need 



1. to set the values of these boxes from the date values in a database for 

an existing 

project. 



2. for a new project, I need to select the dates from the boxes, save them 

and redisplay 

the same input screen with the same options selected corresponding to the 

dates that 

have been input.



In the attached file I can set the start and stop dates to today for a new 

project. 

But when I select new start and stop dates, save the information, and 

redisplay the 

same page for further data entry I don't know how to make the list boxes 

keep the 

information that was input.



I am using IIS and ASP on an NT server.


  Return to Index