HTML Control "select" runat="server"
I have a problem in running the following code:
<html>
<head>
</head>
<body>
<form runat="server">
<select style="WIDTH: 219px" runat=âserverâ>
<option>a</option>
<option selected="selected">b</option>
<option>c</option>
</select>
</form>
</body>
</html>
If the Select tag is not runat="server", then it's OK, but when the object is parsed by asp.net the tag <Option Selected="selected"> generates error, but <option selected> is OK and accepted by parser. However webmatrix replaces <option selected> by <option selected="selected"> when you go to design view of the page, forcing the error.
Is there any help in this issue for me? Is the above text descriptive enough?
|