View Single Post
Old October 13th, 2004, 08:42 AM
hamid hamid is offline
Registered User
Join Date: Oct 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default syntax error on <option selected="selected">

I have a problem in running the following code:

    <form runat="server">
        <select ID="abc" style="WIDTH: 219px" runat=”server”>
        <option selected="selected">b</option>

If the Select tag is not runat="server", then it's OK, but when the object is parsed by 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 on this issue please? Is the above text descriptive enough?