PDA

View Full Version : Convert JSP code in ASP


smita
12-17-2010, 09:03 AM
i want to Convert the below given jsp code in asp.
<select size="1" name="s" style="width: 150">
<option <%=s.equals("abc") ? "selected" : "" %> value="abc">abc</option>
</select>.

Please guide.

Old Pedant
12-17-2010, 06:47 PM
<select size="1" name="s" style="width: 150">
<option <% If s = "abc" Then Response.Write "selected" %> value="abc">abc</option>
</select>