how to modify html hyperlink to asp

i have this link:

<a href="javascript:toggleLayer('uniqueID')">test</a>      

i want to add this link in asp:

'Loop through the recordset
Do While not rst3.EOF
      'Write the HTML to display the current record in the recordset
      Response.Write (" <strong><img src='images/png/24x24/kalender.png' />&nbsp;")
      Response.Write ("<a href='javascript:toggleLayer('uniqueID')'>")
      Response.Write (rst3("appointdate"))
      Response.Write (" </a>")
      Response.Write (" </strong>")

but he doesn't want the " " in asp, so i modify it to ' ', but then the javascript doesn't work anymore,

can anyone help me? thx

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jesus RodriguezIT ManagerCommented:
replace " with ""
replace one quote with double quote, will be like this
Response.Write (rst3(""appointdate""))
use double-doublequotes

Response.Write ("<a href=""javascript:toggleLayer('uniqueID')"">")
Response.Write ("Link</a>")

Open in new window

outputs this HTML
<a href="javascript:toggleLayer('uniqueID')">Link</a>

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Wayne BarronAuthor, Web DeveloperCommented:
You have 1 to many </a> signs.

Do not ever do response.write in your project, unless it strictly calls for it.
And in this case, it does not call for it.

While not rst3.EOF
<strong><img src='images/png/24x24/kalender.png' />
<a href="javascript:toggleLayer('uniqueID')">test</a>

Open in new window

Good Luck
Check out my site for more ASP Tutorials and goodies.
All FREE of course.

fedkrisAuthor Commented:
Wayne BarronAuthor, Web DeveloperCommented:
I tell you.
Doing it the way I explained it is the best way and most professional way of coding it.

Good Luck
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.