易截截图软件、单文件、免安装、纯绿色、仅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 身份验证

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路径的基本使用

asp.net路径的基本使用
来源:http://mqingqing123.cnblogs.com/archive/2006/04/14/375338.html
URL路径其实很简单,不过在ASP.NET2.0里也设计到,所以天天在这里罗嗦一下,把路径的使用简单概括一下:
 在使用CSS样式时,设计到对路径的引用,这里以<a></a>为例,说明路径的常规处理。
一般而言,链 ......

ASP.NET开发中URL被截取或乱码的解决方案

使用ASP.NET开发网站时,如果URL中传递的参数过长(具体多长没有测试)的话,在使用IE6浏览时,就会出现通过QueryString获得的值不完整,或者出现乱码的情况。其解决方法是:在Web.config中的System.web配置节中添加如下代码即可:
<globalization requestEncoding="gb2312" responseEncoding="gb2312"  ......

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


      BehaviorEditorPart Web 服务器控件是一个编辑器部件控件,最终用户可以使用该控件在运行时更改关联的 WebPart 控件上的多个用户界面 (UI) 属性。下表列出了用户可自定义的功能,以及用户可使用 BehaviorEditorPart 控件编辑的对应的 WebPart 控件属性值。
用户可自定义的功能
WebPart ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号