Asp.Net FormsÑéÖ¤ÎÄÕÂÖÐ×îºóµÄweb.configÎļþ
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
<authentication mode="Forms">
<forms loginUrl="login.aspx" name=".ASPXAUTH1" domain=".cnblogs.com" />
</authentication>
<machineKey validationKey="F9A61F796A204D9945889B64D9DA5086E89CEC5200F0CED4" decryptionKey="D679BCF2A76DEBB04D7FED5E5967F46C92FEF2B31AD5D7C9" validation="SHA1" />
<compilation debug="true"/>
<roleManager defaultProvider="MyRoleProvider"
enabled="true"
cacheRolesInCookie="true"
cookieName=".ASPROLES"
cookieTimeout="30"
cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieProtection="All" >
<providers>
<clear />
<add name="MyRoleProvider"
type="MyRoleProvider"
writeExceptionsToEventLog="false" />
</providers>
&
Ïà¹ØÎĵµ£º
ÏÞÉèÖÃÒÔWindows Server 2003ΪÀý£¬ÐéÄâÖ÷»úÓû§²»±Ø½øÐдËÏîÉèÖá£Ê×ÏÈ£¬ÎÒÃÇÐèÒªÓõ½ÒÔϵÄ×é:
IIS_WPG ×飨Ҳ³ÆΪ IIS ¹¤×÷½ø³Ì×飬IIS Worker Process Group£©
Guests×é £¨À´±ö×飬ÔÚϵͳÖÐÓµÓÐ×îÉÙµÄȨÏÞ£©
ÒÔ¼°ÒÔϵÄÕʺÅ:
Internet À´±öÕÊ»§ £¨ÄäÃû·ÃÎÊ Internet ÐÅÏ¢·þÎñµÄÄÚÖÃÕÊ»§£©
Æô¶¯ IIS ½ø³ÌÕÊ»§ £¨ÓÃÓ ......
Asp.net DataListǶÌ×DataListµÄʵÏÖ
[ 2006-05-31 01:26:24 | ×÷Õß: Admin ]
×ÖÌå´óС: ´ó | ÖÐ | С
Êý¾Ý·þÎñ¿Ø¼þµÄǶÌ××îÖ÷ÒªµÄÊÇÊÇÄÚ²ã¿Ø¼þÊý¾ÝµÄ¼ÓÔغÍʼþµÄ´¥·¢¡£ DataListǶÌ×µÄÖصãÊÇÒªÔÚÍâ²ãDataListµÄItemDataBoundʼþÖÐÓÃe.Item.FindControl·½·¨À´ÕÒµ½Ç¶ÌײãDataListµÄid,±àдǶÌײãDataListµÄ°ó¶¨Êý¾Ý ......
ÒÔϾÑé×ܽá×Ô£¬²¢ÇÒ¾¹ýÑéÖ¤
1£¬²»²ÎÓëPOSTBACK»úÖƵĿؼþ£¬²»ÒªÓ÷þÎñÆ÷¿Ø¼þ£¬¾¡Á¿Óþ²Ì¬HTML±ê¼Ç
2£¬±àÒëʱʹÓÃRELEASEÅäÖÃ
3£¬ÕýʽͶÈëÓ¦ÓÃʱ£¬¼Ç׎«DEBUGÉèΪFALSE
4£¬SMARTNAVIGATE¼Ç×ÅÉèΪTRUE£¬Ëü¿ÉÒÔÈÃä¯ÀÀÕ߸оõµ½ÄãÐÔÄܵÄÌá¸ß
5£¬Èç¹û²»ÊDZØÐë±£³Ö¸üеÄÒ³Ã棬Çë¼Çס¼ÓÈëÉùÃ÷£¬Ëü¿ÉÒÔ´ó·ùÌá¸ßÐÔÄÜ
6£¬³ý ......
ͨ³£javascript´úÂë¿ÉÒÔÓëHTML±êÇ©Ò»ÆðÖ±½Ó·ÅÔÚÇ°¶ËÒ³ÃæÖУ¬µ«Èç¹ûJS´úÂë¶àµÄ»°Ò»·½Ãæ²»ÀûÓÚά»¤£¬ÁíÒ»·½ÃæÒ²¶ÔËÑË÷ÒýÇæ²»ÓѺã¬Òò
ΪҳÃæÒò´Ë¶ø±äµÃÓ·Ö×£»ËùÒÔÒ»°ãÓÐÁ¼ºÃ¿ª·¢Ï°¹ßµÄ³ÌÐòÔ±¶¼»á°Ñjavascript´úÂë·Åµ½¶ÀÁ¢µÄjsÎļþÖУ¬ÆäËûÒ³Ãæͨ¹ýÒýÈë¸ÃjsÎļþÀ´Ê¹ÓÃÏàÓ¦µÄ
javascript´úÂë¡£
½ñÌìÔÚ×öÒ»¸öСÐÂÎÅϵͳµÄ¹ÜÀí ......
Õâ¸öÎÊÌâÀ§ÈÅÁËÎÒÁ½Ì죬ÊÖ»úÏÂÔØ
protected void Page_Load(object sender, EventArgs e)
{
string filename = Server.UrlDecode(Request["upload"]);
string filePath = Server.MapPath("uploa ......