求本asp.net的ajax书籍和页面处理效果!!求救。。。 在网上找了很长时间都没有找到《征服Ajax web 2.0 开发详解》(asp.net)全本 连csdn都是有删选的。希望有的大大可以传本电子档的给我 谢谢!!!非常感谢 源码就不用了,还有个问题我在asp.net的页面中读取到了数据库的数据相对的图片时能显示出来了,但是我怎么能刚好控制图片显示的大小比列呢?弄了很长时间,没法子了,来求救!!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 等比例缩放图片<script language="JavaScript">var flag=false;function DrawImage(ImgD,iwidth,iheight){ var image=new Image(); image.src=ImgD.src; if(image.width>0 && image.height>0){ flag=true; if(image.width/image.height>= iwidth/iheight){ if(image.width>iwidth){ ImgD.width=iwidth; ImgD.height=(image.height*iwidth)/image.width; }else{ ImgD.width=image.width; ImgD.height=image.height; } ImgD.alt=image.width+"×"+image.height; } else{ if(image.height>iheight){ ImgD.height=iheight; ImgD.width=(image.width*iheight)/image.height; }else{ ImgD.width=image.width; ImgD.height=image.height; } ImgD.alt=image.width+"×"+image.height; } }} 龙腾教程网和下载里看看 js 怎样加密url 100分求个ASP跳转的具体问题,在线等!! 麻烦用过asp.net开发过dwz框架的帮帮小弟! xsl:value 问题 请问如何获取地址栏中即将跳转的 URL 地址 初学者 奇怪问题!CheckBox的disable的问题 一个时间问题? xslt归纳统计的问题(欢迎ssm1226(雨中人)解答) 请教问题? 如何监视或者得到程序与SQL数据库的通讯信息 从一个列表里如何判断产品类型是否一致?
<script language="JavaScript">
var flag=false;
function DrawImage(ImgD,iwidth,iheight){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= iwidth/iheight){
if(image.width>iwidth){
ImgD.width=iwidth;
ImgD.height=(image.height*iwidth)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
}
else{
if(image.height>iheight){
ImgD.height=iheight;
ImgD.width=(image.width*iheight)/image.height;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
} }
}
龙腾教程网和下载里看看