日期:2014-05-18  浏览次数:20410 次

请教个简单的问题,很简单的,谢谢了。。。。。。。。
代码段如下:

                    <a   href= 'Product.aspx?ProductID= <%#   Eval( "ProductID ")%> '>
                        <img   width= "100 "   src= 'ProductImages/ <%#   Eval( "Image1FileName ")   %> '   style= "border:0 "   alt= "ProductImage "/>
                    </a>

我的问题:
一般使用a,img标记中的href=,src=后面都是“”,这里为什么是‘’呢。
请问“”和‘’有什么区别?

------解决方案--------------------
我晕,因为里面的数据绑定用的是“”
------解决方案--------------------
因为Eval里面已经用了双引号,所以外面只能用单引号