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

IIS 7.0 µÄ ASP.NET Ó¦ÓóÌÐòÉúÃüÖÜÆÚ¸ÅÊö


±¾Ö÷Ìâ½éÉÜÔÚ IIS 7.0 ¼¯³ÉģʽÏÂÔËÐÐÒÔ¼°Óë IIS 7.0 »ò¸ü¸ß°æ±¾Ò»ÆðÔËÐÐµÄ ASP.NET Ó¦ÓóÌÐòµÄÓ¦ÓóÌÐòÉúÃüÖÜÆÚ¡£IIS 7.0 »¹Ö§³Ö¾­µäģʽ£¬ÆäÐÐΪÀàËÆÓÚÔÚ IIS 6.0 ÖÐÔËÐÐµÄ ASP.NET¡£Óйظü¶àÐÅÏ¢£¬Çë²Î¼û IIS 5.0 ºÍ 6.0 µÄ ASP.NET Ó¦ÓóÌÐòÉúÃüÖÜÆÚ¸ÅÊö¡£
IIS 7.0 ¼¯³É¹ÜµÀÊÇÒ»ÖÖͳһµÄÇëÇó´¦Àí¹ÜµÀ£¬Ëüͬʱ֧³Ö±¾»ú´úÂëºÍÍйܴúÂëÄ£¿é¡£ÊµÏÖ IHttpModule ½Ó¿ÚµÄÍйܴúÂëÄ£¿é¿É·ÃÎʸÃÇëÇó¹ÜµÀÖеÄËùÓÐʼþ¡£ÀýÈ磬ÍйܴúÂëÄ£¿é¿ÉÓÃÓÚ ASP.NET ÍøÒ³£¨.aspx Îļþ£©ºÍ HTML Ò³£¨.htm »ò .html Îļþ£©µÄ ASP.NET Forms Éí·ÝÑéÖ¤¡£¼´Ê¹ IIS ºÍ ASP.NET ½« HTML Ò³ÊÓΪ¾²Ì¬×ÊÔ´£¬Çé¿öÒ²ÊÇÈç´Ë¡£ÓÐ¹Ø IIS 7.0 ¼¯³ÉģʽµÄ¸ü¶àÐÅÏ¢£¬Çë²Î¼û ASP.NET Integration with IIS7£¨½« ASP.NET Óë IIS7 ¼¯³É£©¡£
±¾Ö÷Ìâ°üº¬ÒÔϲ¿·Ö£º
½á¹¹¸ÅÊö
ÉúÃüÖÜÆڽ׶Î
ʹÓà Global.asax Îļþ
IIS 7.0 ÖеÄÍйܴúÂëÄ£¿é
 ½á¹¹¸ÅÊö
ÔÚ IIS 7.0 ¼¯³ÉģʽϵÄÇëÇó»á¾­Àú¼¸¸ö½×¶Î£¬ÀàËÆÓÚÔÚ IIS 6.0 ÖÐ¶Ô ASP.NET ×ÊÔ´µÄÇëÇóËù¾­ÀúµÄ½×¶Î¡£µ«ÊÇ£¬ÔÚ IIS 7.0 ÖУ¬ÕâЩ½×¶Î°üº¬¶à¸ö¶îÍâµÄÓ¦ÓóÌÐòʼþ£¬Èç MapRequestHandler¡¢MapRequestHandler ºÍ MapRequestHandler ʼþ¡£
IIS 7.0 ºÍ IIS 6.0 µÄ´¦Àí½×¶ÎÖ®¼äµÄÖ÷ÒªÇø±ðÔÚÓÚ ASP.NET ÈçºÎÓë IIS ·þÎñÆ÷¼¯³É¡£ÔÚ IIS 6.0 ÖУ¬ÓÐÁ½¸öÇëÇó´¦Àí¹ÜµÀ¡£Ò»¸ö¹ÜµÀÓÃÓÚ±¾»ú´úÂë ISAPI ɸѡÆ÷ºÍÀ©Õ¹×é¼þ¡£ÁíÒ»¸ö¹ÜµÀÓÃÓÚÍйܴúÂëÓ¦ÓóÌÐò×é¼þ£¬Èç ASP.NET¡£ÔÚ IIS 7.0 ÖУ¬ASP.NET ÔËÐÐʱÓë Web ·þÎñÆ÷¼¯³É£¬ÕâÑù¾ÍÓÐÁËÒ»¸öÕë¶ÔËùÓÐÇëÇóµÄͳһµÄÇëÇó´¦Àí¹ÜµÀ¡£¶ÔÓÚ ASP.NET ¿ª·¢ÈËÔ±£¬¼¯³É¹ÜµÀÓÐÒÔÏÂÒæ´¦£º
¼¯³É¹ÜµÀÒý·¢ÓÉ HttpApplication ¶ÔÏ󹫿ªµÄËùÓÐʼþ£¬ÕâʹÏÖÓÐ ASP.NET HTTP Ä£¿é¿ÉÔÚ IIS 7.0 ¼¯³ÉģʽϹ¤×÷¡£
ÔÚ Web ·þÎñÆ÷¼¶±ð¡¢ÍøÕ¾¼¶±ð»ò Web Ó¦ÓóÌÐò¼¶±ð£¬¶¼¿ÉÅäÖñ¾»ú´úÂëºÍÍйܴúÂëÄ£¿é¡£Õâ°üÀ¨ÓÃÓڻỰ״̬¡¢Forms Éí·ÝÑéÖ¤¡¢ÅäÖÃÎļþÒÔ¼°½ÇÉ«¹ÜÀíµÄÄÚÖà ASP.NET ÍйܴúÂëÄ£¿é¡£´ËÍ⣬¿ÉÒÔΪËùÓÐÇëÇóÆôÓûò½ûÓÃÍйܴúÂëÄ£¿é£¬ÎÞÂÛÇëÇóÊÇ·ñÕë¶Ô ASP.NET ×ÊÔ´£¨Èç aspx Îļþ£©¡£
¿ÉÒÔÔڹܵÀÖеÄÈκν׶ε÷ÓÃÍйܴúÂëÄ£¿é¡£Õâ°üÀ¨ÔÚ¶ÔÇëÇó½øÐÐÈκηþÎñÆ÷´¦Àí֮ǰ£¬ÔÚËùÓзþÎñÆ÷´¦Àí¶¼ÒÑ·¢ÉúÖ®ºó£¬»òÕßÁ½Õß¼äµÄÈκν׶Ρ£
¿ÉÒÔͨ¹ýÓ¦ÓóÌÐòµÄ Web.config Îļþ×¢²áÄ£¿é£¬Ò²¿ÉÒÔÆôÓûò½ûÓÃÄ£¿é¡£
ÏÂÃæµÄ²åͼÑÝʾӦÓóÌÐòµÄÇëÇó¹ÜµÀµÄÅäÖ᣸ÃʾÀý°üÀ¨ÒÔÏÂÄÚÈÝ£º
Anonymous


Ïà¹ØÎĵµ£º

ASP.NET MVC ÈëÃÅ7¡¢HellperÓëÊý¾ÝµÄÌá½»Óë°ó¶¨

ASP.NET
MVCÌṩÁ˺ܶàHellperµÄ·½·¨£¬Hellper¾ÍÊÇһЩÉú³ÉHTML´úÂëµÄ·½·¨£¬·½±ãÎÒÃÇÊéдHTML´úÂë(ÓÐÒ»²¿·ÖµÄÅóÓѸüϲ»¶Ö±½ÓдHTML
´úÂë)¡£ÎÒÃÇÒ²¿ÉÒÔÀûÓÃ.NET 3.5µÄÀ©Õ¹·½·¨À´ÊéдÎÒÃÇ×Ô¼ºµÄHellper¡£
ÀýÈ磺
<%
=
Html.ActionLink(
"
Ê×Ò³
"
,
"
index
"
,
"
Home
" ......

ASP.NET»ñÈ¡Òþ²ØÎļþµÄÀàÃû

ASP.NET»ñÈ¡Òþ²ØÎļþµÄÀàÃû£¨Ô­£© http://www.cnblogs.com/lin614/archive/2008/01/25/1052676.html Õâ¸öÎÊÌâÔÚ¿ª·¢ÖÐÓöµ½¡£
this.GetType().  µÃµ½µÄ:   ASP.****_ASPX  
ÄÇÎÒ¸ÃÈçºÎ²ÅÄܵõ½   ÀàÃû:****¡£Í¨¹ý×Ö·û´®´¦ÀíµÃµ½µÄÀàÃû×ܸоõ²»ÊÇÕý¹æ;¾¶¡£
¾­¹ý²éѯ×ÊÁÏ£ ......

asp.netÖ´ÐÐsql½Å±¾£¬µ¼³öÊý¾Ý¿âÎļþµ½±¾µØ

protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection conn= new SqlConnection("server=(local);database=colorring;uid=sa;pwd=;");
conn.Open();
string sqlstr = "exec master..xp_cmdshell 'bcp \"select top 100 * from master..aps\" queryout c:\\aa ......

ÔÚÁ½¸öASP.NETÒ³ÃæÖ®¼ä´«µÝ±äÁ¿

 ASP.NETÌṩÁËʼþÇý¶¯±à³ÌÄ£ÐÍ£¬Ê¹¿ª·¢Õß¼ò»¯ÁËÓ¦ÓóÌÐòµÄ×ÜÌåÉè¼Æ£¬µ«ÊÇÕâ¸öÒ²Ôì³ÉÁËËü¹ÌÓеÄһЩÎÊÌ⣬ÀýÈ磬ÔÚ´«Í³µÄASPÀÎÒÃÇ¿ÉÒÔͨ¹ýʹÓÃPOST·½·¨ºÜÈÝÒ×µØʵÏÖÒ³Ãæ¼ä´«µÝ±äÁ¿£¬Í¬ÑùµÄÊÂÇ飬ÔÚʹÓÃʼþÇý¶¯±à³ÌÄ£Ð͵ÄASP.NET¾ÍÒªÂ鷳һЩ£¬µ«ÊÇÎÒÃÇÈÔÈ»ÓÐһЩ·½·¨¿ÉÒÔʵÏÖͬÑùµÄ¹¦ÄÜ¡£±ÊÕßÔÚÕâÀォ°üº¬Ê¹ÓÃque ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ