ÈÏʶASP.NETÅäÖÃÎļþWeb.config
ÈÏʶASP.NETÅäÖÃÎļþWeb.config
×÷ÕߣºSabine¡¡À´Ô´£ºÈüµÏÂÛ̳
¡¡¡¡Ò»¡¢ÈÏʶWeb.configÎļþ
Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄ
Web.configÎļþ£¬°üÀ¨Ä¬ÈϵÄÅäÖÃÉèÖã¬ËùÓеÄ×ÓĿ¼¶¼¼Ì³ÐËüµÄÅäÖÃÉèÖá£Èç¹ûÄãÏëÐÞ¸Ä×ÓĿ¼µÄÅäÖÃÉèÖã¬Äã¿ÉÒÔÔÚ¸Ã×ÓĿ¼ÏÂн¨Ò»¸öWeb.configÎļþ¡£Ëü¿ÉÒÔÌṩ³ý´Ó¸¸Ä¿Â¼¼Ì³ÐµÄÅäÖÃÐÅÏ¢ÒÔÍâµÄÅäÖÃÐÅÏ¢£¬Ò²¿ÉÒÔÖØд»òÐ޸ĸ¸Ä¿Â¼Öж¨ÒåµÄÉèÖá£
ÔÚÔËÐÐʱ¶ÔWeb.configÎļþµÄÐ޸IJ»ÐèÒªÖØÆô·þÎñ¾Í¿ÉÒÔÉúЧ£¨×¢£º£¼processModel£¾ ½ÚÀýÍ⣩¡£µ±È»Web.configÎļþÊÇ¿ÉÒÔÀ©Õ¹µÄ¡£Äã¿ÉÒÔ×Ô¶¨ÒåÐÂÅäÖòÎÊý²¢±àдÅäÖýڴ¦Àí³ÌÐòÒÔ¶ÔËüÃǽøÐд¦Àí¡£
¶þ¡¢web.configÅäÖÃÎļþ£¨Ä¬ÈϵÄÅäÖÃÉèÖã©ÒÔÏÂËùÓеĴúÂ붼Ӧ¸ÃλÓÚ
£¼configuration£¾
£¼system.web£¾
¡¡¡¡ºÍ
£¼/system.web£¾
£¼/configuration£¾
Ö®¼ä£¬³öÓÚѧϰµÄÄ¿µÄÏÂÃæµÄʾÀý¶¼Ê¡ÂÔÁËÕâ¶ÎXML±ê¼Ç
1¡¢£¼authentication£¾ ½Ú
×÷ÓãºÅäÖà ASP.NET Éí·ÝÑéÖ¤Ö§³Ö£¨ÎªWindows¡¢Forms¡¢PassPort¡¢NoneËÄÖÖ£©¡£¸ÃÔªËØÖ»ÄÜÔÚ¼ÆËã»ú¡¢Õ¾µã»òÓ¦ÓóÌÐò¼¶±ðÉùÃ÷¡££¼authentication£¾ ÔªËرØÐèÓ룼authorization£¾ ½ÚÅäºÏʹÓá£
ʾÀý£º
ÒÔÏÂʾÀýΪ»ùÓÚ´°Ì壨Forms£©µÄÉí·ÝÑéÖ¤ÅäÖÃÕ¾µã£¬µ±Ã»ÓеǽµÄÓû§·ÃÎÊÐèÒªÉí·ÝÑéÖ¤µÄÍøÒ³£¬ÍøÒ³×Ô¶¯Ìøתµ½µÇ½ÍøÒ³¡£
£¼authentication mode="Forms" £¾
£¼forms loginUrl="logon.aspx" name=".FormsAuthCookie"/£¾
£¼/authentication£¾
ÆäÖÐÔªËØloginUrl±íʾµÇ½ÍøÒ³µÄÃû³Æ£¬name±íʾCookieÃû³Æ
2¡¢£¼authorization£¾ ½Ú
×÷Ó㺿ØÖÆ¶Ô URL ×ÊÔ´µÄ¿Í»§¶Ë·ÃÎÊ£¨ÈçÔÊÐíÄäÃûÓû§·ÃÎÊ£©¡£´ËÔªËØ¿ÉÒÔÔÚÈκμ¶±ð£¨¼ÆËã»ú¡¢Õ¾µã¡¢Ó¦ÓóÌÐò¡¢×ÓĿ¼»òÒ³£©ÉÏÉùÃ÷¡£±ØÐèÓ룼authentication£¾ ½ÚÅäºÏʹÓá£
ʾÀý£ºÒÔÏÂʾÀý½ûÖ¹ÄäÃûÓû§µÄ·ÃÎÊ
£¼authorization£¾
¡¡£¼deny users="?"/£¾
£¼/authorization£¾
×¢£ºÄã¿ÉÒÔʹÓÃuser.identity.nameÀ´»ñÈ¡ÒѾ¹ýÑéÖ¤µÄµ±Ç°µÄÓû§Ãû£»¿ÉÒÔʹÓÃ
web.Security.FormsAuthentication.RedirectfromLoginPage·½·¨½«ÒÑÑéÖ¤µÄÓû§Öض¨Ïòµ½Óû§¸Õ²ÅÇëÇóµÄÒ³Ãæ.¾ßÌåµÄʵÀýÇë²Î¿¼:
FormsÑéÖ¤ http://www.fanvb.net/websample/dataauth.aspx
3¡¢£¼compilation£¾½Ú
×÷ÓãºÅäÖ
Ïà¹ØÎĵµ£º
ÔÚasp.netÒ³ÔËÐУ¬´ËÒ³½«¾ÀúÒ»¸öÉúÃüÖÜÆÚ£¬ÔÚÉúÃüÖÜÆÚÖн«Ö´ÐÐһϵÁд¦Àí²½Ö裬ÕâЩ²½Öè°üÀ¨£º³õʼ»¯£¬ÊµÀý»¯¿Ø¼þ£¬»¹ÔºÍά»¤×´Ì¬£¬ÔËÐÐʼþ´¦Àí³ÌÐò´úÂëÒÔ¼°½øÐгÊÏÖ£»
Ò»°ãÀ´ËµÒ³Òª¾ÀúÒÔϵĸ÷¸ö½×¶Î£º
£¨1£©£ºÒ³ÇëÇó£ºÒ³ÇëÇó·¢ÉúÔÚÒ³ÉúÃüÖÜÆÚ¿ªÊ¼Ö®Ç°£¬Óû§ÇëÇóҳʱ£¬asp.net½«È·¶¨ÊÇ·ñÐèÒª·ÖÎöºÍ±àÒëÒ³£¨´Ó¶ø¿ªÊ¼Ò ......
FCKeditorÏà¹Ø×ÊÁϼò½é£º
¹Ù·½ÍøÕ¾http://www.fckeditor.net/
¹Ù·½Îĵµhttp://wiki.fckeditor.net/
ÏÂÔصØÖ·http://www.fckeditor.net/download/default.html
¹Ù·½ÑÝʾhttp://www.fckeditor.net/demo/default.html
FCKEditor asp.netÉèÖÃ
ÏÂÔØ£ºhttp://www.fckeditor.net
£¨ÒªÏÂÔØFCKeditor2.4.2.zipºÍFCKeditor.NET ......
±¾ÎĽéÉÜͨ¹ý»º´æÀ´Ìá¸ßÍøÒ³µÄÖ´ÐÐЧÂÊ¡£
¡¡¡¡1.¡¡¡¡¡¡¡¡¡¡¡¡ ASP.NET Output Caching
¡¡¡¡µ±Ò»¸öÍøҳƵ·±±»·ÃÎʵÄʱºò£¬ÎÒÃÇ¿ÉÒÔͨ¹ý°ÑÕû¸öÍøÒ³»º´æÀ´Ìá¸ßÖ´ÐÐЧÂÊ¡£ÕâÑù×÷µÄÓŵãÊÇ£¬µ±Óû§ÔٴηÃÎÊÕâ¸öÍøÒ³µÄʱºò£¬±»¸ñʽ»¯ºÃµÄHTML»á±»Ö±½ÓËÍÏÔ¡£
¡¡¡¡ÎªÊ²Ã´»á´æÔÚÕâÖÖЧ¹ûÄØ£¿ÎÒÃÇͨ¹ýASP.NETµÄ»ù±¾ÔËÐлúÖÆÀ´½âÊÍÕ ......
Internet Àà
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Net;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
namespace DownData
{
class internet
{
&nb ......
Ò». ʹÓÃQueryString±äÁ¿
¡¡¡¡¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥Ò²ÊÇʹÓñȽ϶àµÄÒ»ÖÖ´«Öµ·½Ê½£¬µ«ÊÇËü½«´«µÝµÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖÐ,Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£
Response.Redirect( "target.aspx?param1=hello& ......