当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 上传图片并修改其大小 //thefile是
 

 

    摘要: httpcontext类包含了个别http请求的所有特定http信息。这个示例主要是讲如何使用httpcontext类中的user属性来实现用户验证! 用户验证是大部分asp.net web应用程序都要用到的,它在整个应用程序中占有很重要的地位,在.net中,包含了很多种用户验证方式,如众所周知的passport认证,windows认证,form认证等等,可是这些都很难满足我......
    摘要: 浙江移动发送手机短信实例!!!!!!!!!!!!!!!!!!!!!!! **************************************************************************** form1 窗体 dim userid as string dim mobileno as string dim checkrnd as string ......


上传图片并修改其大小(C#)
上传图片并修改其大小

thefile.postedfile.saveas(system.web.httpcontext.current.server.mappath("temp.png")); 【程序编程相关:DataList控件分页操作

//thefile是一个file field html 控件 【推荐阅读:MattPowell的《Server-S

system.drawing.image imgoutput =system.drawing.bitmap.fromfile(system.web.httpcontext.current.server.mappath("temp.png")); 【扩展信息:对“学号”、“身份证”的数字分析

memorystream memstream=new memorystream();

//修改成80×80大小

system.drawing.image imgoutput2=imgoutput.getthumbnailimage(80,80,null,intptr.zero);

imgoutput2.save(system.web.httpcontex
...   下一页
    摘要: form1 窗体 dim userid as string dim mobileno as string dim checkrnd as string dim longin as boolean dim checkrndbox as string public fileno as variant dim ys as integer dim su as long dim sum ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE