I am new to ASP, I have a VERY limited ASP.NET experience, but now the server I am working on is not dot-NET capable.
The user is using HTML SELECT/OPTIONs to determine a start and end date. The values from this SELECT are being used to dynamically generate a SQL query, and then the page calls itself and redraws a table.
I want the options which were selected when the user pressed the button to STILL be selected when (s)he returns. So, for example, if you choose the range 7/10/2003 to 7/12/2003 in the drop-down boxes, I want those dates to STILL be displayed in the drop-down box when the user returns.
I know that in .NET you can use ViewState but have been unable to make that code work in regular VBScript in ASP.
If there is a simple solution, that would be great. I checked BOL and the FAQ for this forum, but was unable to find anything of use.
The only solution I can think of is to do a check at the start of the page, and a SELECT statement. If the SELECT statement finds 7/10/2003, for example, it checks a flag variable. Then, when I generate the HTML for the user, I cycle through and have something like:
<OPTION value="7/10/2003" selected="<%=flag4%>">blah</OPTION>
Where the flags are set to "false" by default, and set to "true" in that one case.
I'm trying this but getting some bugs... if someone has a simpler solution I would appreciate it...
RJ
************
RudeJohn
************
The user is using HTML SELECT/OPTIONs to determine a start and end date. The values from this SELECT are being used to dynamically generate a SQL query, and then the page calls itself and redraws a table.
I want the options which were selected when the user pressed the button to STILL be selected when (s)he returns. So, for example, if you choose the range 7/10/2003 to 7/12/2003 in the drop-down boxes, I want those dates to STILL be displayed in the drop-down box when the user returns.
I know that in .NET you can use ViewState but have been unable to make that code work in regular VBScript in ASP.
If there is a simple solution, that would be great. I checked BOL and the FAQ for this forum, but was unable to find anything of use.
The only solution I can think of is to do a check at the start of the page, and a SELECT statement. If the SELECT statement finds 7/10/2003, for example, it checks a flag variable. Then, when I generate the HTML for the user, I cycle through and have something like:
<OPTION value="7/10/2003" selected="<%=flag4%>">blah</OPTION>
Where the flags are set to "false" by default, and set to "true" in that one case.
I'm trying this but getting some bugs... if someone has a simpler solution I would appreciate it...
RJ
************
RudeJohn
************