ASP Code Inside of Quotation Marks
This is a very beginner question, but driving me crazy. Why isn't this code working?
<a id="share_facebook" style="float: left; text-align: left;" href="http://www.face开发者_StackOverflow社区book.com/sharer.php?u=<% = Request.Url %>">Test</a>
Have also tried using Response.Write() but that doesn't work either.
Silly mistake. Just needed to use ' instead of " in href=. Working code:
<a id="share_facebook" style="float: left; text-align: left;" href='http://www.facebook.com/sharer.php?u=<% = Request.Url %>'></a>
精彩评论