ASP.NET C# ÑéÖ¤Âë Ö§³ÖÖÐÎÄ Ôëµã ÍäÇú
/// <summary>
/// ¸ù¾ÝÖ¸¶¨²ÎÊý·µ»ØBitMap¶ÔÏó
/// ÒýÓÃÈçÏ£º
/// using System.Drawing;
/// µ÷ÓÃÀý×ÓÈçÏ£º
/// eg1¡¢±£´æΪͼÏóÎļþΪ
/// Bitmap srBmp = srBitmap(srs);
/// srBmp.Save(Directory.GetCurrentDirectory() + "\\srs.gif", System.Drawing.Imaging.ImageFormat.Gif);
/// srBmp.Dispose();
/// eg2¡£ÍøÒ³Öе÷Ó÷½Ê½ÈçÏÂ
/// Bitmap srBmp = srBitmap(srs);
/// System.IO.MemoryStream srMS = new System.IO.MemoryStream();
/// srBmp.Save(srMS,System.Drawing.Imaging.ImageFormat.Gif);
/// Response.ClearContent();
/// Response.ContentType = "image/gif";
/// Response.BinaryWrite(srMS.ToArray());
/// srBmp.Dispose();
/// </summary>
/// <param name="srs"></param>
/// <returns></returns>
public static Bitmap srBitmap(string srs)
{
 
Ïà¹ØÎĵµ£º
ÏÂÃæÕâ¶ÎC# ´úÂë¿ÉÒÔÓÃÀ´Ñ¹ËõºÍÐÞ¸´AccessÊý¾Ý¿â,²»¹ÜËüÊÇÒ»¸ö¼òµ¥µÄ".mdb"ACCESSÊý¾Ý¿â»¹ÊÇÒ»¸ö".mdw"ÍøÂç¹²ÏíÊý¾Ý¿â,Õâ¸ö¹ý³ÌºÍÄãÔÚÓÃMS AccessÓ¦ÓóÌÐòÖÐʹÓõÄ"¹¤¾ß-Êý¾Ý¿âʵÓù¤¾ß-ѹËõºÍÐÞ¸´"ʱִÐеIJÙ×÷ÍêÈ«Ò»Ñù.ʵÀý´úÂëʹÓÃÁË"³Ù°ó¶¨"(ÔËÐÐÖÐÔÚÄÚ´æÖн¨Á¢COM¶ÔÏó),ÕâÑù¾Í²»ÐèÒªÔÚ¹¤³ÌÖмÓÈëCOMÒýÓÃÁË,Ò²²»ÐèÒªÔÚP ......
ÔÚasp.net開發ÖУ¬經³£會Óõ½áą́ºÍǰ̨µÄ½»»¥£¬¾Í´Ë總結ÁËÒ»點c#ºÍjavascriptÏ໥²Ù×÷µÄ·½·¨
¡¡¡¡1.ÔÚáą́c#´ú碼ÖÐ調ÓÃjacascriptµÄ·½·¨
¡¡¡¡javascript´ú碼£º
¡¡¡¡<script type="text/javascript" language="javascript">
¡¡¡¡function test()
¡ ......
asp.netÖе¼³öExeclµÄ·½·¨£º
ÔÚasp.netÖе¼³öExeclÓÐÁ½ÖÖ·½·¨£¬Ò»ÖÖÊǽ«µ¼³öµÄÎļþ´æ·ÅÔÚ·þÎñÆ÷ij¸öÎļþ¼ÐÏÂÃ棬Ȼºó½«ÎļþµØÖ·Êä³öÔÚä¯ÀÀÆ÷ÉÏ£»Ò»ÖÖÊǽ«ÎļþÖ±½Ó½«ÎļþÊä³öÁ÷д¸øä¯ÀÀÆ÷¡£ÔÚResponseÊä³öʱ£¬t·Ö¸ôµÄÊý¾Ý£¬µ¼³öexeclʱ£¬µÈ¼ÛÓÚ·ÖÁУ¬nµÈ¼ÛÓÚ»»ÐС£
1¡¢½«Õû¸öhtmlÈ«²¿Êä³öexecl
´Ë·¨½«htmlÖÐËùÓеÄÄÚÈÝ£ ......
ÔÚGlobal.asaxÆô¶¯Ò»ÌõÏ߳̾ÍokÁË£¬ÏÂÃæÊÇÆô¶¯Ï̶߳¨Ê±Ð´ÎļþµÄÀý×Ó
ÔÚGlobal.asax
C# code:
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Threading" %>
<script runat="server">
string LogPath;  ......
asp.net ·¢²¼ÍøվʱÓÐÈý¸öÑ¡Ï
1¡¢ÔÊÐí¸üдËÔ¤±àÒëÕ¾µã£ºasp.net web Ò³Ãæͨ³£°üº¬Á½¸öÒ³Ã棬һ¸ö¼´ .aspx Ò³£¬»¹ÓÐÒ»¸ö .aspx.cs Îļþ£¬ºóÒ»¸öÎļþÊÇ»ù±¾Î¯ÍеÄʼþÏìÓ¦Îļþ´úÂ룻´Ë´¦ÔÊÐí¸üдËÔ¤±àÒëÕ¾µãµÄÒâ˼¾ÍÊÇ£º.aspx Ò³¿É¸ù¾ÝÐèÒª½øÐÐÒ»¶¨µÄ¸üУ¬¶ø .aspx.cs ±àÒë³ÉµÄ .dll ±£³Ö²»±ä£»ÁíÍ⣬Èç¹û·¢²¼Íøվʱֻ ......