to dingdaohua(小数点):
我的意思是说用什么方法取得图片的文件名,然后加在超级链接上。

解决方案 »

  1.   

    to webdiyer(陕北吴旗娃) :
    我的网页上的图片是缩略图,我想通过点击查看原始图片.我的问题是有没有什么办法通过点击图片来取得图片的文件名.
      

  2.   

    <a href =<=%PHOTOPATH%> target =_blank><img border=0 src=<=%smallPhotoPaht%></a>
      

  3.   

    有一种办法是将图片路径名写在web.config文件中,图片名称写在数据库中,你从配置文件中读出路径名加上从数据库中取出的图片名即可:配置文件的写法:
    <configuration>
    <appSettings>
     <add key="phtotpath" value="c:/xx/" />
    </appSettings>    
      <system.web>用法:
    <a href =<=%System.Configuration.ConfigurationSettings.AppSettings["phtotpath"]%> target =_blank><img border=0 src=<=%smallPhotoPaht%></a>
      

  4.   

    可以考虑:用一个页来生成图片,在另外一页中包含它<a href="a.aspx"><img src="a.aspx" width=2 height=2></a>点击后就会直接去显示原始图片