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

asp.net ÉúÃüÖÜÆÚ ¸ø¿Ø¼þ´«Öµ ×¢Òâ

ÓÉÓÚÒ³Ãæ¿Ø¼þµÄʼþÒýÆðµÄpostback»Ø·¢£¨±ÈÈçµã»÷ʼþ£©´¦Àí³ÌÐò·¢ÉúÔÚÓû§¿Ø¼þ³õʼ»¯Ê¼þ£¨onload£©Ö®ºó£¬ËùÒÔÒªÏëͨ¹ýµã»÷ʼþ´¦Àíº¯ÊýÀ´´«µÝÖµµ½Óû§¿Ø¼þ£¬±ØÐëÒªÔÚÒ³ÃæµÄonloadÖд«Öµ if(!page.IsPostBack) { Ò³Ãæ³õʼ»¯£º// } else {        ´«µÝ²ÎÊýµ½Óû§¿Ø¼þ´¦Àí³ÌÐò£¨£©£»// } ÕâÑù²Å»áÓÐЧ


Ïà¹ØÎĵµ£º

ASP.NET

Áù¡¢CircleHotSpot Àà
      ÔÚ ImageMap ¿Ø¼þÖж¨ÒåÔ²ÐÎ×÷ÓõãÇøÓò¡£ÎÞ·¨¼Ì³Ð´ËÀà¡£
      ´ËÀàÔÚ ImageMap ¿Ø¼þÖж¨ÒåÒ»¸öÔ²ÐÎ×÷ÓõãÇøÓò¡£ÈôÒª¶¨Òå CircleHotSpot ¶ÔÏóÇøÓò£¬Ç뽫 X ÊôÐÔÉèÖÃΪ±íʾԲÐÎÇøÓòÖÐÐÄµÄ x ×ø±êµÄÖµ¡£½« Y ÊôÐÔÉèÖÃΪ±íʾԲÐÎÇøÓòÖÐÐÄµÄ y ......

File Download Tips for asp.net


use http header
protected void Page_Load(object sender, EventArgs e)
{
string format = Convert.ToString(ViewData["format"]);
Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode("·ÑÓñ¨Ïú±í", Encoding.UTF8) + string.Forma ......

ASP.NET

      ListBox Web ·þÎñÆ÷¿Ø¼þʹÓû§Äܹ»´ÓÔ¤¶¨ÒåµÄÁбíÖÐÑ¡ÔñÒ»Ïî»ò¶àÏî¡£
 
Ò»¡¢·½°¸
ÈôÒªÒ»´ÎÏÔʾ¶à¸öÏʹÓû§Äܹ»´ÓÔ¤¶¨ÒåÁбíÖÐÑ¡ÔñÒ»¸ö»ò¶à¸öÏÇëʹÓà ListBox Web ·þÎñÆ÷¿Ø¼þ¡£ListBox ¿Ø¼þÓë DropDownList ¿Ø¼þµÄ²»Í¬Ö®´¦ÔÚÓÚ£¬Ëü¿ÉÒÔÒ»´ÎÏÔʾ¶à¸öÏʹÓû§Äܹ»Ñ¡Ôñ¶à¸öÏî£ ......

ASP.NET¼¼ÇÉ£ºÊ¹ÓÃGridview°ó¶¨Êý¾Ý¿âÖеÄͼƬ

ʹÓÃGridview°ó¶¨Êý¾Ý¿âÖеÄͼƬ
×¢£º´ËϵÁмǼÔÚÎÒʵ¼Ê¿ª·¢ÖÐÓöµ½µÄÎÊÌâºÍÊÕ²ØÒ»Ð©¼¼ÇÉÎÄÕ¡£
ÎÒÃǶ¼ÖªµÀ£¬ÔÚGridviewÖв»ÄÜÖ±½ÓÈ¥°ó¶¨Êý¾Ý¿âÖеÄͼƬ£¬ÎÒÃÇ¿ÉÒÔÀûÓÃHttpHandlerºÜÈÝÒ×µÄÍê³ÉÕâ¸öÈÎÎñ£¬ÔÚÕâÀïÎҼǼһÏÂÕâ¸ö¹ý³Ì¡£
1.ÉÏ´«Í¼Æ¬´æ´¢µ½Êý¾Ý¿âÖÐ
ÔÚÊý¾Ý¿âÖд´½¨Ò»¸ö±í£¬Ìí¼ÓÒ»ÏÂ3¸ö×ֶΣº
²½ÖèÒ»£ºÔÚWeb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ