如题。
解决方案 »
- 关于VS自带的Chart控件
- 如何在被线程执行的方法里面对这个线程进行操作?
- GridView导出到EXCEL出错,请求帮忙!
- 望各位指教:关于asp.net学习
- 无法连接数据库,请高手指点,谢谢~!
- 如何在数据库中建表
- 单击Gridview外的按钮Button,怎样使嵌套在gridview中的Datalist中的Dropdownlist的选项发生变化写入数据库
- 为什么不能在2003中上传文件?
- 用SQL SERVER如何实现插入数据后立刻取出插入的数据的id?在线等待,急~~~~~~~
- 在线请看源程序~~~
- 请教各位如何对绑定的数据进行编码,我这样的结果是乱码。<%#Server.UrlEncode(DataBinder.Eval(Container.DataItem, "Name").ToString()
- DataList水平遍历的间隔问题
System.Drawing.Image smallimage;
int width=System.Convert.ToInt32(image.Width.ToString());
int height = System.Convert.ToInt32(image.Height.ToString());int smallwidth=width/10,smallheight=height/10;smallimage=image.GetThumbnailImage(smallwidth,smallheight,callb,new System.IntPtr());
smallimage.Save("缩略图保存路径");
function DrawImage(ImgD)
{
var image=new Image();
image.src=ImgD.src
if(image.width>0 && image.height>0)
{
flag=true;
if(image.width/image.height>= 150/120)
{
if(image.width>150)
{
ImgD.width=150;
ImgD.height=(image.height*150)/image.width;
}
else
{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
}
else
{
if(image.height>120)
{
ImgD.height=120;
ImgD.width=(image.width*120)/image.height;
}
else
{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
}
}
}
<img id="uploadimage" onload="javascript:DrawImage(this);" border="0">js就行了
地,我给个地址,其它就不解释了
http://community.csdn.net/Expert/topic/4237/4237273.xml?temp=.850567