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
相关文档:
jquery通过post传递数据到服务器(不使用插件):
<html>
<head>
<title>Untitled Page</title>
<script language="javascript" type="text/javascript" src="js/jquery-1.3.1.js"></script>
<script language="ja ......
有许多工具可以帮助您测试和监视 Web 应用程序的性能。ASP.NET 包括多个性能计数器,可以使用这些性能计数器来跟踪应用程序的执行。您还可以使用内置的 ASP.NET 跟踪功能来跟踪页或应用程序的代码执行。
注意:
一些可视化设计器包括用于测试 ASP.NET 应用程序的工具。例如,Microsoft Visual Studio 2005 提供 Applica ......
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 ......
BehaviorEditorPart Web 服务器控件是一个编辑器部件控件,最终用户可以使用该控件在运行时更改关联的 WebPart 控件上的多个用户界面 (UI) 属性。下表列出了用户可自定义的功能,以及用户可使用 BehaviorEditorPart 控件编辑的对应的 WebPart 控件属性值。
用户可自定义的功能
WebPart ......