<!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?

  &lt;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>&gt;
      &lt;span class="headertext2"&gt;Year&lt;/span&gt;&lt;br /&gt;
            &lt;select name="year" id="year" onchange="loadMakes()" &gt;
           &lt;option value=""&gt;Choose..&lt;/option&gt;
            &lt;%for x=1974 to year(date)
                       if x=request.querystring("year") then%&gt;
                  &lt;option selected="selected" value=&lt;%=x%&gt; 
  </pre>
  <blockquote type="cite">
    <pre wrap="">&lt;%=response.write(x)%&gt;&lt;/option
    </pre>
  </blockquote>
  <pre wrap=""><!---->                 &lt;option value=&lt;%=x%&gt;&gt;&lt;%=response.write(x)%&gt;&lt;/option&gt;
                                 &lt;%else%&gt;
                  &lt;option value=&lt;%=x%&gt;&gt;&lt;%=response.write(x)%&gt;&lt;/option&gt;
                &lt;%end if%&gt;
              &lt;%next%&gt;
        &lt;/select&gt; &lt;br /&gt;&lt;br /&gt;</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><>&lt;%<br>
&nbsp;&nbsp;&nbsp; for x = 1974 to year(date)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if x = request.querystring("year") Then<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; response.write "&lt;option selected='selected' value="
&amp; x &amp; "&gt;" <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; response.write x &amp; "&lt;/option&gt;"</> <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; response.write "&lt;option value='" &amp; x &amp;
"'&gt;" &amp; x &amp; "&lt;/option&gt;"<br>
</tt>
<pre wrap=""><tt>        end if
    next
%&gt;</tt></pre>
<br>
</body>
</html>