View Single Post
 
Old June 20th, 2007, 12:14 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Safari may be more strict when it comes to valid XHTML. This is not valid:

Response.Write("<option value selected="">""</option>")

as tt results in:

<option value selected=">"</option>

Which is incorrect (X)HTML syntax. You need something like:

<option value="" selected="selected">""</option>

which you can accomplish with:

Response.Write("<option value="""" selected=""selected"">""""</option>")

Notice how the selected attribute needs the word selected as its value. Also, to display a quote in a Response.Write statement you need to double it.

Maybe you already knew this, but it may help in diagnosing future problems.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.