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

ASP.NET³£ÓÃÓï¾ä1 20Ìõ ·Ç³£ÊµÓÃ

1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(&quot; <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>&quot;);
Response.Write(&quot; <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>&quot;);
2.//µ¯³ö¶Ô»°¿ò
Response.Write(&quot; <script language='javascript'>alert('²úÆ·Ìí¼Ó³É¹¦£¡')
</script >&quot;);
3.//ɾ³ýÎļþ
string filename =&quot;20059595157517.jpg&quot;;
pub.util.DeleteFile(HttpContext.Current.Server.MapPath(&quot;../file/&quot;)
+filename);
4.//°ó¶¨ÏÂÀ­Áбí¿òdatalist
System.Data.DataView dv=conn.Exec_ex(&quot;select -1 as code,'ÇëÑ¡Ôñ¾­ÓªÄ£Ê½'
as content from dealin union select code,content from dealin&quot;);
this.dealincode.DataSource=dv;
this.dealincode.DataTextField=&quot;content&quot;;
this.dealincode.DataValueField=&quot;code&quot;;   
this.dealincode.DataBind();
this.dealincode.Items.FindByValue(dv[0][&quot;dealincode&quot;].ToString
()).Selected=true;
5.//ʱ¼äÈ¥ÃëÏÔʾ
<%# System.DateTime.Parse(DataBinder.Eval
(Container.DataItem,&quot;begtime&quot;).ToString()).ToShortDateString()%>
6.//±êÌâ´øÁ´½Ó
<%# &quot; <a class=\&quot;12c\&quot; target=\&quot;_blank\&quot;
href=\&quot;http://www.51aspx/CV/_&quot;+DataBinder.Eval
(Container.DataItem,&quot;procode&quot;)+&quot;.html\&quot;>&quot;+
DataBinder.Eval(Container.DataItem,&quot;proname&quot;)+&quot; </a>&quot;%>
7.//ÐÞ¸ÄתÏò
<%# &quot; <A href=\&quot;editpushpro.aspx?id=&quot;+DataBinder.Eval
(Container.DataItem,&quot;code&quot;)+&quot;\&quot;>&quot;+&quot;ÐÞ¸Ä
&quot;+&quot; </A>&quot;%>
8.//µ¯³öÈ·¶¨°´Å¥
<%# &quot; <A id=\&quot;btnDelete\&quot; onclick=\&quot;return confirm('ÄãÊÇ·ñ
È·¶¨É¾


Ïà¹ØÎĵµ£º

ASP.NET MVC 2 ת»»¹¤¾ß

ËÆË®Á÷Ä걨¸æÁËASP.NET MVC 2 Õýʽ·¢²¼£¬ÄÇôÎÒÃÇÓÐÐí¶àASP.NET MVC 1.0µÄ³ÌÐòÐèÒªÒÆÖ²µ½2.0Ôõô°ìÄØ£¿Eilon Lipton ÒѾ­·¢²¼ÁËһƪ²©ÎÄ migration tool for converting ASP.NET MVC 1 application projects£¬ÎªÎÒÃǵÄVisual Studio 2008µÄMVCÏîÄ¿µÄÇ¨ÒÆ×¼±¸ºÃ¹¤¾ß£¬Ö÷Òª¹¤×÷¾ÍÊÇת»¯ÏîÄ¿ÀàÐÍ£¬¸üгÌÐò¼¯µÄÒýÓúÍÉú³ÉÅäÖÃÐ ......

asp.netʵÏÖÍøÒ³ÐÅÏ¢²É¼¯µÄ¼¸µã˼¿¼

×î½ü¹«Ë¾ÐèÒª¿ª·¢Ò»¸ö¼òÀúµ¼È빦ÄÜ£¬ÀàËÆ²©¿Í°á¼Ò»òÕßÓÊÏä°á¼Ò£¬Ö®Ç°×¥È¡ÐÅÏ¢ÊÇÀûÓû𳵲ɼ¯Æ÷£¬µ«ÊǼòÀúµ¼È빦ÄÜÐèÒªÓû§µÇ½ÒÔºó²ÅÄÜ»ñÈ¡¼òÀúÊý¾Ý£¬ÎÞÄÎÖ»ºÃ×Ô¼º¿ª·¢ÁË¡£
Ê×ÏÈÊÇÓöµ½µÄÎÊÌâÊÇ£ºÈçºÎʵÏÖÄ£ÄâµÇ½£¿
ÎÒÃÇÖªµÀÒ»°ãµÄÍøÕ¾¶¼ÊÇͨ¹ýCookiesÀ´Î¬»¤×´Ì¬µÄ£¬ÎÒ×¥µÄÍøÕ¾Ò²ÊÇÖ§³ÖÀûÓÃCookiesÀ´ÑéÖ¤Óû§µÄ£¬¹¹ÔìÒ»¸ö ......

ÔÚasp.netÖÐÔõÑùÌø×ª¿ò¼Ü

ÎÒÓÐÒ»¸ölogin.aspxµÄÒ³Ãæ,¼ÙÈçµÇ¼³É¹¦ºó¾Í»á×Ô¶¯Ìø×ªµ½index.htmlµÄ¿ò¼Ü. 
index.htmlÓÐÈý¸öÒ³Ãæ,top.aspx,left.aspx,main.aspx,È»ºóleft.aspxÀïÃæÏÔʾÓû§ÐÅÏ¢ 
¼ÙÈçÔÚleft.aspxÀïûÓÐSessionµÄ»°,»á·µ»Ølogin.aspxÒ³Ãæ,¶ø²»ÏÔʾindex.htmlÒ³ÃæÀïµÄÈκÎÒ»Ò³. 
ÎÒÏÖÔÚµÄÇé¿öÊÇûÓÐSessionµÄʱºò»¹ÊÇÔÚi ......

ASP.NETÖнâ¾ö´«µÝÖÐÎIJÎÊý

1.ÉèÖÃweb.configÎļþ.
<system.web>
......
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312" />
......
</system.web>
 
»òÕߣº
aspxÎļþÖÐ:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"&g ......

ASP.NET MVC 2µÄ´úÂëÒÔMS PLЭÒ鿪Դ·¢²¼

΢ÈíÒѾ­Ðû²¼ASP.NET MVC 2µÄ´úÂëÒÔMS-PLЭÒé·¢²¼,MS-PLÊÇÒ»¸öµÃµ½OSIÈÏÖ¤µÄ¿ªÔ´Ð­Ò飬ASP.NET MVC»ùÓÚMS-PL·¢²¼£¬ÊÇÒ»¸öÕæÕýµÄ¿ªÔ´¿ò¼ÜÇÒûÓÐÈÎºÎÆ½Ì¨ÏÞÖÆ£¬Ò²¾ÍÊÇ˵£¬Äú¿ÉÒÔÔÚmonoÏÂʹÓûò¿ª·¢ASP.NET MVCµÄÏà¹ØÏîÄ¿¡£ ¿ÉÒÔµ½ASP.NET MVC 2 RTM Download Details page»ñȡԴ´úÂë,»òÕßµ½CodePlexÉÏ»ñÈ¡£¬Õâ¸öÒ³ÃæÊÇ΢Èí¹Ù ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ