ASP.netµÄweb.configµÄÖÐÎĽâÊÍ
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<!-- ¶¯Ì¬µ÷ÊÔ±àÒë
ÉèÖà compilation debug="true" ÒÔ½«µ÷ÊÔ·ûºÅ£¨.pdb ÐÅÏ¢£©²åÈëµ½±àÒëÒ³ÖС£ÒòΪÕ⽫´´½¨Ö´ÐÐÆðÀ´½ÏÂýµÄ´óÎļþ£¬ËùÒÔÓ¦¸ÃÖ»ÔÚµ÷ÊÔʱ½«¸ÃÖµÉèÖÃΪ true£¬¶øËùÓÐÆäËûʱºò¶¼ÉèÖÃΪfalse¡£Óйظü¶àÐÅÏ¢£¬Çë²Î¿¼Óйص÷ÊÔ ASP.NET ÎļþµÄÎĵµ¡£
-->
<compilation defaultLanguage="vb" debug="true" />
<!-- ×Ô¶¨Òå´íÎóÐÅÏ¢
ÉèÖà customErrors mode="On" »ò "RemoteOnly" ÒÔÆôÓÃ×Ô¶¨Òå´íÎóÐÅÏ¢£¬»òÉèÖÃΪ "Off" ÒÔ½ûÓÃ×Ô¶¨Òå´íÎóÐÅÏ¢¡£ÎªÃ¿¸öÒª´¦ÀíµÄ´íÎóÌí¼Ó <error> ±ê¼Ç¡£
-->
<customErrors mode="RemoteOnly" />
<!-- Éí·ÝÑéÖ¤
´Ë½ÚÉèÖÃÓ¦ÓóÌÐòµÄÉí·ÝÑéÖ¤²ßÂÔ¡£¿ÉÄܵÄģʽÊÇ \“Windows\”¡¢\“Forms\”¡¢“Passport\”ºÍ \“None\”
-->
<authentication mode="Windows" />
<!-- ÊÚȨ
´Ë½ÚÉèÖÃÓ¦ÓóÌÐòµÄÊÚȨ²ßÂÔ¡£¿ÉÒÔÔÊÐí»ò¾Ü¾øÓû§»ò½ÇÉ«·ÃÎÊÓ¦ÓóÌÐò×ÊÔ´¡£Í¨Åä·û£º"*" ±íʾÈκÎÈË£¬"?" ±íʾÄäÃû£¨Î´ÊÚȨµÄ£©Óû§¡£
-->
<authorization>
<allow users="*" /> <!-- ÔÊÐíËùÓÐÓû§ -->
<!-- <allow users="[¶ººÅ·Ö¸ôµÄÓû§Áбí]"
roles="[¶ººÅ·Ö¸ôµÄ½ÇÉ«Áбí]"/>
<deny users="[¶ººÅ·Ö¸ôµÄÓû§Áбí]"
roles="[¶ººÅ·Ö¸ôµÄ½ÇÉ«Áбí]"/>
-->
</authorization>
<!-- Ó¦ÓóÌÐò¼¶±ð¸ú×ټǼ
Ó¦ÓóÌÐò¼¶±ð¸ú×ÙÔÚÓ¦ÓóÌÐòÄÚΪÿһҳÆôÓøú×ÙÈÕÖ¾Êä³ö¡£
ÉèÖà trace enabled="true" ÒÔÆôÓÃÓ¦ÓóÌÐò¸ú×ټǼ¡£Èç¹û pageOutput="true"£¬Ôò¸ú×ÙÐÅÏ¢½«ÏÔʾÔÚÿһҳµÄµ×²¿¡£·ñÔò£¬¿ÉÒÔͨ¹ý´Ó Web Ó¦ÓóÌÐò¸ùä¯ÀÀ "trace.axd" Ò³À´²é¿´Ó¦ÓóÌÐò¸ú×ÙÈÕÖ¾¡£
-->
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
<!-- »á»°×´Ì¬ÉèÖÃ
ĬÈÏÇé¿öÏ£¬ASP.NET ʹÓà cookie ±êʶÄÄЩÇëÇóÊôÓÚÌض¨µÄ»á»°¡£
Èç¹û cookie ²»¿ÉÓã¬Ôò¿ÉÒÔͨ¹ý½«»á»°±êʶ·ûÌí¼Óµ½ URL À´¸ú×ٻỰ¡£
ÈôÒª½ûÓà cookie£¬ÇëÉèÖà sessionState cookieless="true"¡£
-->
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=12
Ïà¹ØÎĵµ£º
ÔÚ½« ASP.NET Web ²¿¼þµÄ¼¯³É¿Ø¼þ¼¯ÖеĿؼþ°üÀ¨ÔÚÍøÒ³ÖÐʱ£¬ÕâЩ¿Ø¼þ½«×ñÊظÃÒ³µÄ¹æÔò£»¾ßÌå¶øÑÔ¾ÍÊÇ£¬ÕâЩ¿Ø¼þ½«ÔÚ¸ÃÒ³µÄÉúÃüÖÜÆÚÄÚÔËÐС£
ÿ¸öÍøÒ³¶¼¾ßÓÐÒ»¸öÉúÃüÖÜÆÚ£¬ÍøÒ³ÔÚÆäÉúÃüÖÜÆÚÄÚ½«Ö´ÐÐһϵÁд¦Àí²½Öè¡£ÕâЩ²½Öè°üÀ¨³õʼ»¯¡¢´´½¨¿Ø¼þ¡¢»¹ÔºÍά»¤×´Ì¬¡¢ÔËÐÐʼþ´¦Àí³ÌÐò´ú ......
Web ²¿¼þµÄÒ»ÏîÖ÷Òª¹¦ÄÜÊÇʹ×îÖÕÓû§Äܹ»¸öÐÔ»¯ÍøÒ³²¢±£´æÆä¸öÐÔ»¯ÉèÖá£ÐÞ¸Ä Web ²¿¼þÒ³µÄÒ»¸ö·½Ãæ°üÀ¨±à¼¿É¼û WebPart ¿Ø¼þµÄÍâ¹Û¡¢²¼¾Ö¡¢ÐÐΪºÍÆäËûÊôÐÔ¡£
Web ²¿¼þ¿Ø¼þ¼¯Öеļ¸Öֿؼþ¿ÉÌṩ±à¼¹¦ÄÜ¡£ÆäÖаüÀ¨ EditorZone ¿Ø¼þ£¬¸Ã¿Ø¼þÊÇ Web ²¿¼þ¿Ø¼þ¼¯ÖÐÓÃÓÚ³ÐÔØÍøÒ³É쵀 EditorP ......
ImportCatalogPart Web ·þÎñÆ÷¿Ø¼þ¿Éµ¼Èë WebPart ¿Ø¼þµÄ˵Ã÷Îļþ£¨»òÓÃ×÷ WebPart ¿Ø¼þµÄÆäËû ASP.NET ·þÎñÆ÷¿Ø¼þ£©¡£ÕâÑù¾Í¿ÉÒÔ½«¸Ã¿Ø¼þͨ¹ýÔ¤ÏÈÖ¸¶¨µÄÉèÖÃÌí¼Óµ½ÍøÒ³ÖС£¸Ã˵Ã÷ÎļþʹÓû§¿ÉÒÔ¹²Ïí WebPart ¿Ø¼þµÄÉèÖá£
˵Ã÷ÎļþÓë¿Ø¼þ±¾Éí²»Í¬¡£ËüÊÇÒÔ .WebPart ÎļþÀ©Õ¹Ãû½áβµÄ XM ......
CheckBoxÑ¡Ôñ×é¼þÊÇÒ»¸ö³ÌÐòÖж¼¾³£µÄ×é¼þ¡£ÔÚ³ÌÐòÉè¼ÆÖÐʹÓõ½¸Ã×é¼þ£¬Ò»°ã¶¼²»»áֻʹÓõ½Ò»¸ö£¬ÍùÍùÊÇÒÔ¶à¸ö´ËÀà×é¼þµÄÐÎʽ³öÏֵġ£ÔÚASP.NETÒ³ÃæÖÐÈç¹ûҪʹÓõ½¶à¸öCheckBox×é¼þ£¬³ýÁËÌí¼Ó¶à¸öCheckBox×é¼þÔÚÒ³ÃæÖÐÖ®Í⣬»¹ÓÐÒ»ÖֱȽϷ½±ãµÄ·½·¨£¬¾ÍÊÇʹÓÃCheckBoxList ×é¼þ¡£CheckBoxList×é¼þÊÇÓÉÒ»×éµÄCheckBox×é¼þ×é ......
Ìí¼ÓÒ»¸öÀࣺ°ÑÏÂÃæµÄÎļþ·ÅÔÚÀàÖоͿÉÒÔÁË¡£
using System;
using System.Web;
using System.Data;
using System.Data.SqlClient;
public class MessageBox
{
public MessageBox()
{
& ......