ASP.NET ÈçºÎʵÏÖα¾²Ì¬
ÆäʵËùνµÄα¾²Ì¬Ò³Ãæ,¾ÍÊÇÖ¸µÄURLÖØд.
1.Ê×ÏÈÔÚweb.configÀïд
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
</configSections>
2.ÔÚweb.configÀïÌí¼ÓÒÔϽڵã
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
<add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
</httpHandlers>
3.ÅäÖÃÖØдURL¹æÔò (ÕâÀïÎÒÃǾÍÒÔ *.htmlתµ½*.aspxΪÀý×Ó£¬µ±È»Ò²¿ÉÒÔʵÏÖ http://www.a.com/a-1.html תµ½ http://www.a.com/a.aspx?id=1 ÕâÖÖÐÎʽ),
ÔÚconfiguration ¼ÓÈëһϽڵã
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/(.*).html</LookFor>
<SendTo>~/$1.aspx</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
4.ÕâÒ»²½ Ò²ÊÇ×îÖØÒªµÄÒ»²½¡£ÔÚiis ÖÐÓÒ¼üÏîÄ¿→ÊôÐÔ→Ö÷Ŀ¼→ÅäÖÃ→Ó³Éä→Ìí¼Ó
¿ÉÖ´ÐÐÎļþÀïÃæÊäÈë c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll£¬
À©Õ¹ÃûÊäÈë .html
È»ºóÔÙ°Ñ È·ÈÏÎļþÊÇ·ñ´æÔÚ Ç°ÃæµÄ¹³¹³È¥µô¡£(Õâ²½ºÜÖØÒª£¬²»È»»á±¬404µÄ´íÎó)
ÈçÏÂͼËùʾ:
5.ÄúÐèÒªÔÚÄãµÄÏîÄ¿ÖÐÒýÓà URLRewriter.dll Õâ¸ödllÎļþ ¡£
ÏÂÔصØÖ·£º http://download.csdn.net/source/2325865
6.ÕâÑù ¾ÍÅäÖÃÍêÁË£¬¼ÙÉè ÄãÓÐ http://192.168.0.2/index.aspx Õâ¸öÒ³ÃæµÄ»°¡£
ÄÇôÄãÔÚä¯ÀÀÆ÷ÖÐÊäÈë http://192.168.0.2/index.html ¾Í¿´µ½Ð§¹ûÁË.
×¢£ºÒÔÉÏ ÊÇÔÚ server2003 iis 6.0 framework2.0 ÏÂÅäÖõġ£
¸½ÉÏ ÍêÕûµÄWeb.Config´úÂë°É
<?xml version="1.0"?>
<configuration>
<!--1-->
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="true"/>
<authenti
Ïà¹ØÎĵµ£º
//TransmitFileʵÏÖÏÂÔØ
protected void Button1_Click(object sender, EventArgs e)
{
/*
΢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öеķ½·¨TransmitFileÀ´½â¾öʹÓÃRespo ......
asp.net¼òÌå×Öת·±Ìå×ÖµÄÀà¿â
ÕⶫÎ÷ËäÈ»¼òµ¥£¬µ«Ò²²»Ê§Îª¾µäµÄÀà¿â£¬¸öÈ˶øÑÔ£¬¾Í·Ç³£Ï²»¶Õâ¸öÀà¿â¡£
ÓÃÎÄ×ּǼÏÂÀ´°É£¬Áô¸ö¼ÇÄî°É
ÔÚvsÖУ¬ÓÐÒ»¸ö¾µäµÄMicrosoft.VisualBasic.dllµÄVBÀà¿â£¬¸ù¾Ý¹Ù·½µÄÃèÊö£º
ËüÄÜÌṩ¶ÔÐí¶à .NET Framework ÀàµÄ¼òµ¥Ö±¹ÛµÄ· ......
1 ÈçºÎÔÚÌá½»ºó·ÀÖ¹µ¯³öд°¿Ú
2 ÔÚģ̬´°¿ÚÖÐÔٴε¯³öģ̬´°¿Ú
3 ģ̬´°¿Ú·µ»ØÖµ
4 ˢи¸´°¿Ú
5 ¸¸´°¿ÚÈçºÎÌí¼Óˢнű¾
Ö÷´°¿Úµ¯³öÒ»¸öģ̬´°¿Ú,
var firstDiag = window.showModalDialog(url,window,"center:yes;dialogWidth:300px;dialogHeight:400px");
×¢:ÔÚurlÎļþµÄhead¼ÓÈë <base target='_self'> ¾ ......
×÷Õß: Stephen Walther
ÔÎĵØÖ·£ºhttp://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnvs05/html/UserProfiles.asp
Òë
ÕߣºTony Qu
¸ÅÒª£ºÐí¶àASP.NETÓ¦ÓóÌÐòÐèÒª¿ç·ÃÎʵÄÓû§ÊôÐÔ
¸ú×Ù¹¦ÄÜ£¬ÔÚASP.NET1.1ÖУ¬ÎÒÃÇÖ»ÄÜÈ˹¤ÊµÏÖÕâÒ»¹¦ÄÜ¡£µ«Èç½ñ£¬Ê¹Óà ASP.NET 2.0µÄProfile¶ÔÏó£¬Õâ¸ö¹ý³Ì±äµÃÒì
......
//¸ù¾ÝÖ÷¼üÀ´É¾³ý±íÖеÄÊý¾Ý¡£
//ɾ³ý
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
OleDbConnection sqlConnection = new OleDbConnection(GetConnection());
& ......