Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 13th, 2004, 08:42 AM
Registered User
Join Date: Oct 2004
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 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 on this issue please? Is the above text descriptive enough?

Old October 13th, 2004, 09:20 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

Posted to your other thread.

Similar Threads
Thread Thread Starter Forum Replies Last Post
option selected from a select box Adam H-W Classic ASP Basics 3 December 11th, 2006 11:09 AM
selected value of nested repeater-build <select> bttrflii ASP.NET 2.0 Professional 2 September 15th, 2006 09:52 AM
Reloading page when option selected in dropdown chandrasekhar200 Beginning PHP 1 March 10th, 2006 04:52 AM
HELP: XSL -> HTML <select selected=true> jedbartlett XSLT 4 October 7th, 2004 11:16 PM
Fire a macro when an option is selected ashu_gupta75 Excel VBA 1 August 12th, 2004 12:42 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.