易截截图软件、单文件、免安装、纯绿色、仅160KB

GDI+入门(九、ASP.NET中GDI+)

九、ASP.NET中GDI+
protected void Page_Load(object sender, EventArgs e)
        {
            string Filename;
            System.Drawing.Image g;
            Filename = Server.MapPath("./1.jpg");
            g = System.Drawing.Image.fromFile(Filename);
            Response.ContentType = "image/jpeg";
            g.Save(Response.OutputStream, g.RawFormat);
            g.Dispose();
        }
实在是太简单了,不讲了吧
Response.ContentType = "image/jpeg";
Response.OutputStream
这两个地方很重中
 
WebServices中使用GDI+
[WebMethod]
        public Byte[] DrawChart(int north, int east, int south, int west)
        {
            System.IO.MemoryStream outStream;
            outStream = new System.IO.MemoryStream();
            float thisAngle = 0;
            float totalAngle = 0;
 
            int width = 200;
            int height = width;
            int diameter = width - (width / 10);
            int top = (height / 2) - (diameter / 2);
        &n


相关文档:

ASP.NET页面刷新方法总结

第一:
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); }
第二:
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script& ......

asp.net 身份验证

1、给web.config添加<authentication>元素
2、给web.config文件添加<forms>元素
<forms name=".aspxauth" loginUrl="Login.aspx" protection="All" timeout="30" path="/" requireSSL="false" slidingExpiration="true" cookieless="UseDeviceProfile"></forms>
3、FormsAuthentication.Redire ......

asp.net连接mysql的问题

一:asp.net怎么连接mysql数据库
   下载mysql connection的东西
   http://dev.mysql.com/downloads/connector/net/6.2.html
   有3个download选第一个下载
   Windows (x86, 32-bit), ZIP Archive 
   mysql-connector-net-6.2.2-noinstall.zip ......

ASP.NET ConnectionsZone Web 服务器控件概述


      使用 Web 部件控件,可以让用户在运行时创建两个服务器控件之间的连接,以形成连接并共享数据。一个控件用作数据的提供者,另一个控件用作数据的使用者。这两个控件可以是 WebPart 控件或任何其他类型的服务器控件。必须将它们设计为处理连接且位于 WebPartZoneBase 区域中。
 
在 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号