Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.net ͼƬ´¦Àí »ñȡͼƬ¿í¶ÈºÍ¸ß¶È

1.»ñȡͼƬ¿í¶ÈºÍ¸ß¶È
    1.Äú¿ÉÒÔʹÓà System.Drawing.Image Àà
    System.Drawing.Image img = System.Drawing.Image.fromFile(Server.MapPath("example.gif"));
int width = img.Width;
int height = img.Height;
img.Dispose();
µ«ÊÇÕâÀïÎÒÃÇÈ´²»ÄÜÔÚµ¼ÈëÃû³Æ¿Õ¼äºóʹÓà Image Ê±Ê¡ÂÔ System.Drawing£¬ÒòΪÕâ»áºÍ System.Web.UI.WebControls µÄ Image ²úÉú»ìÏý¡£
»òÕßÄúÒ²¿ÉÒÔʹÓà System.Drawing.Bitmap Àà
Bitmap bmp = new Bitmap(Server.MapPath("example.jpg"));
int width = bmp.Width;
int height = bmp.Height;
bmp.Dispose();

ËäÈ»Ãû³ÆÊÇ Bitmap£¬µ«Êµ¼ÊͬÑù¿ÉÒÔ´¦Àí BMP¡¢JPEG¡¢GIF¡¢PNG µÈ¸ñʽµÄͼƬ¡£
ÄÇô System.Drawing.Image ºÍ System.Drawing.Bitmap ÓÐʲôÇø±ðÄØ£¿
System.Drawing.Image ÆäʵÊÇ System.Drawing.Bitmap µÄ»ùÀ࣬Õâ¾ÍÊÇΪʲô Bitmap ²»µ¥µ¥¿ÉÒÔ´¦Àí BMP ͼƬµÄÔ­ÒòÁË¡£


Ïà¹ØÎĵµ£º

Asp.net Ò³Ãæ´«ÖµÖ® @ PreviousPageType Ö¸Áî¡£

¸ø³öÈçÏÂÀý×Ó ÎÒÖ»ÖªµÀÕâÑù×ö¿ÉÒÔµ÷ÓÃÉÏÒ»¸öÒ³Ãæ µÄÖµ»òÕß·½·¨ µ«ÊÇÎÒ²»ÖªµÀÔ­ÀíºÍËüµÄÓÅÂÔ
Çë¸ßÊÖ ¼ÓÒÔÖ¸µã ´ó¼Ò¹²Í¬Ñ§Ï° лл£¡
1.Default.aspx Ò³Ãæ
protected void but1_Click(object sender, EventArgs e)
    {
        Server.Transfer("Default2.aspx"); ......

Asp.Net¹¹¼Ü(HttpÇëÇó´¦ÀíÁ÷³Ì) Part.1

URL:
http://www.cnblogs.com/JimmyZhang/archive/2007/09/04/880967.html
ÒýÑÔ
ÎÒ²éÔĹý²»ÉÙAsp.NetµÄÊé¼®£¬·¢ÏÖ´ó¶àÊý×÷Õ߶¼ÊÇÕ¾ÔÚÒ»¸ö±È½Ï¸ßµÄ²ã´ÎÉϽ²½âAsp.Net¡£ËûÃÇÄÍÐÄ¡¢Ï¸ÖµظæËßÄãÈçºÎÒ»²½²½ÍϷſؼþ¡¢ÉèÖÿؼþÊôÐÔ¡¢±àдCodeBehind´úÂ룬ÒÔʵÏÖij¸öÌض¨µÄ¹¦ÄÜ¡£
ÕâÖÖ×ö·¨£¬Êµ¼ÊÉÏÊǻشðÁË“ÈçºÎÈ¥×ö&rd ......

Asp.net 123

(1)asp.net ʵÏÖnÃëºóÒ³Ãæ×Ô¶¯Ìøת
1.
<script type="text/javascript" language="javascript">
function reloadyemian()
{
    window.location.href = "javascript:history.go(-1)";      
}
window.setTimeout("reloadyemian();",5000);
</script> ......

asp.net Êý¾Ý¿â²Ù×÷

ASP.NET²Ù×÷Êý¾Ý¿â
ͨ¹ý¶ÔADO.NETµÄ»ù±¾½²½â£¬ÒÔ¼°½²½âÁËһЩÊý¾ÝÔ´¿Ø¼þµÄ»ù±¾Ó÷¨ºó£¬±¾Õ½«½éÉÜһЩASP.NET²Ù×÷Êý¾Ý¿âµÄ¸ß¼¶Ó÷¨£¬°üÀ¨Ê¹ÓÃSQLHelper£¬ÒÔ¼°Êý¾ÝÔ´¿Ø¼þ¶ÔÊý¾ÝµÄ²Ù×÷¡£±¾ÕÂÊǶÔÇ°ÃæµÄÊý¾Ý¿â֪ʶµÄÒ»ÖÖ²¹³äºÍÌáÉý¡£
9.1  ʹÓÃADO.NET²Ù×÷Êý¾Ý¿â
ÉÏÒ»ÕÂÖнéÉÜÁËADO.NETµÄ»ù±¾¸ÅÄî¡¢ADO.NETµÄ¶ÔÏó£¬ÒÔ¼ ......

ASP.NET ÖÐÈçºÎ¶ÔÉú³ÉµÄ HTML ÄÚÈÝÁ÷½øÐпØÖÆ£¿

<%@ Page Language="C#" %>  
<%@ Import Namespace="System.IO" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<script runat="server">  
  prote ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ