<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Enrique Arredondo wrote:
<blockquote cite="midPine.SC5.4.60.0805301254350.1237@atksco.vegena.net"
type="cite">
<pre wrap="">Can some one tell me where or who can help me out with asp / css / html
code ? I inherited a www server and I can't make the thing display the
selected="selected" work on one of the files. Any clues?
<form method="post"
action=<a class="moz-txt-link-rfc2396E" href="http://call2install.com/applications/tech/product.asp?getresult=true">"http://call2install.com/applications/tech/product.asp?getresult=true"</a>>
<span class="headertext2">Year</span><br />
         <select name="year" id="year" onchange="loadMakes()" >
<option value="">Choose..</option>
<%for x=1974 to year(date)
                 if x=request.querystring("year") then%>
<option selected="selected" value=<%=x%>
</pre>
<blockquote type="cite">
<pre wrap=""><%=response.write(x)%></option
</pre>
</blockquote>
<pre wrap=""><!----> <option value=<%=x%>><%=response.write(x)%></option>
                                <%else%>
<option value=<%=x%>><%=response.write(x)%></option>
<%end if%>
<%next%>
</select> <br /><br /></pre>
</blockquote>
<br>
I am just starting to learn some asp.net stuff, but it looks like your
first problem is formatting<br>
when you are trying to debug problems like this...<br>
<br>
Try to rewrite the whole mess without coming in and out of asp code so
much<br>
This is not tested, and is probably wrong, so rewrite to do what you
want.<br>
<br>
<tt><><%<br>
for x = 1974 to year(date)<br>
if x = request.querystring("year") Then<br>
response.write "<option selected='selected' value="
& x & ">" <br>
response.write x & "</option>"</> <br>
else<br>
response.write "<option value='" & x &
"'>" & x & "</option>"<br>
</tt>
<pre wrap=""><tt> end if
next
%></tt></pre>
<br>
</body>
</html>