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

asp.netÖÐʹÓûùÓÚ½ÇÉ«roleµÄFormsÑéÖ¤

asp.netÖÐʹÓûùÓÚ½ÇÉ«roleµÄFormsÑéÖ¤£¬´óÖ¾­¹ý¼¸ÏÂËIJ½£º
1.ÅäÖÃϵͳweb.config
timeout="20" path="/" />
ÆäÖÐ ±íʾ±¾Ó¦ÓóÌÐò²ÉÓÃFormsÑéÖ¤·½Ê½¡£
1). ±êÇ©ÖеÄname±íʾָ¶¨ÒªÓÃÓÚÉí·ÝÑéÖ¤µÄ HTTP Cookie¡£Ä¬ÈÏÇé¿öÏ£¬name µÄÖµÊÇ .ASPXAUTH¡£²ÉÓôËÖÖ·½Ê½ÑéÖ¤Óû§ºó,ÒÔ´ËÓû§µÄÐÅÏ¢½¨Á¢Ò»¸öFormsAuthenticationTicketÀàÐ͵ÄÉí·ÝÑé֤Ʊ,ÔÙ¼ÓÃÜÐòÁл¯ÎªÒ»¸ö×Ö·û´®,×îºó½«Õâ¸ö×Ö·û´®Ð´µ½¿Í»§¶ËµÄnameÖ¸¶¨Ãû×ÖµÄCookieÖÐ.Ò»µ©Õâ¸öCookieдµ½¿Í»§¶Ëºó,´ËÓû§ÔٴηÃÎÊÕâ¸öwebÓ¦ÓÃʱ»á½«Á¬Í¬CookieÒ»Æð·¢Ë͵½·þÎñ¶Ë,·þÎñ¶Ë½«»áÖªµÀ´ËÓû§ÊÇÒѾ­ÑéÖ¤¹ýµÄ.
2). ±êÇ©ÖеÄloginUrlÖ¸¶¨Èç¹ûûÓÐÕÒµ½ÈκÎÓÐЧµÄÉí·ÝÑéÖ¤ Cookie£¬ÎªµÇ¼½«ÇëÇóÖض¨Ïòµ½µÄ URL¡£Ä¬ÈÏֵΪ default.aspx¡£loginUrlÖ¸¶¨µÄÒ³Ãæ¾ÍÊÇÓÃÀ´ÑéÖ¤Óû§Éí·ÝµÄ,Ò»°ã´ËÒ³ÃæÌṩÓû§ÊäÈëÓû§ÃûºÍÃÜÂë,Óû§Ìá½»ºóÓɳÌÐòÀ´¸ù¾Ý×Ô¼ºµÄÐèÒªÀ´ÑéÖ¤Óû§µÄºÏ·¨ÐÔ(´ó¶àÇé¿öÊǽ«Óû§ÊäÈëÐÅϢͬÊý¾Ý¿âÖеÄÓû§±í½øÐбȽÏ),Èç¹ûÑéÖ¤Óû§ÓÐЧ,ÔòÉú³Éͬ´ËÓû§¶ÔÓ¦µÄÉí·ÝÑé֤Ʊ,дµ½¿Í»§¶ËµÄ Cookie,×îºó½«ä¯ÀÀÆ÷Öض¨Ïòµ½Óû§³õÊÔÇëÇóµÄÒ³Ãæ.Ò»°ãÊÇÓÃFormsAuthentication.RedirectfromLoginPage ·½·¨À´Íê³ÉÉú³ÉÉí·ÝÑé֤Ʊ,д»Ø¿Í»§¶Ë,ä¯ÀÀÆ÷Öض¨ÏòµÈһϵÁеĶ¯×÷.
public static void RedirectfromLoginPage( string userName, bool createPersistentCookie, string strCookiePath );
ÆäÖÐ:
userName£º ¾ÍÊÇ´ËÓû§µÄ±êʾ,ÓÃÀ´±êÖ¾´ËÓû§µÄΨһ±êʾ,²»Ò»¶¨ÒªÓ³Éäµ½Óû§ÕË»§Ãû³Æ.
createPersistentCookie£º ±êʾÊÇ·ñ·¢³ö³Ö¾ÃµÄ Cookie¡£
Èô²»Êdz־ÃCookie£¬CookieµÄÓÐЧÆÚExpirationÊôÐÔÓе±Ç°Ê±¼ä¼ÓÉÏweb.configÖÐtimeoutµÄʱ¼ä£¬Ã¿´ÎÇëÇóÒ³Ãæʱ£¬ÔÚÑéÖ¤Éí·Ý¹ý³ÌÖУ¬»áÅжÏÊÇ·ñ¹ýÁËÓÐЧÆÚµÄÒ»°ë£¬ÒªÊǵĻ°¸üÐÂÒ»´ÎcookieµÄÓÐЧÆÚ£»ÈôÊdz־Ãcookie£¬ExpirationÊôÐÔÎÞÒâÒ壬ÕâʱÉí·ÝÑé֤ƱµÄÓÐЧÆÚÓÐcookieµÄExpires¾ö¶¨£¬RedirectfromLoginPage·½·¨¸øExpiresÊôÐÔÉ趨µÄÊÇ50ÄêÓÐЧÆÚ¡£
strCookiePath£º±êʾ½«Éú³ÉµÄCookieµÄдµ½¿Í»§¶ËµÄ·¾¶£¬Éí·ÝÑé֤ƱÖб£´æÕâ¸ö·¾¶ÊÇÔÚË¢ÐÂÉí·ÝÑé֤ƱCookieʱʹÓã¨ÕâÒ²ÊÇÉú³ÉCookieµÄPath£©£¬ÈôûÓÐstrCookiePath ²ÎÊý£¬ÔòʹÓÃweb.configÖÐ pathÊôÐÔµÄÉèÖá£
ÕâÀï¿ÉÒÔ¿´µ½,´Ë·½·¨²ÎÊýÖ»ÓÐÈý¸ö,¶øÉí·ÝÑé֤ƱµÄÊôÐÔÓÐÆ߸ö,²»×ãµÄËĸö²ÎÊýÊÇÕâôÀ´µÄ:
IssueDate£ºCookie·¢³öʱ¼äÓɵ±Ç°Ê±¼äµÃ³ö,
Expiration£º¹ýÆÚʱ¼äÓɵ±Ç°Ê±¼äºÍ±êÇ©ÖеÄtimeout²ÎÊýËã³ö¡£´


Ïà¹ØÎĵµ£º

asp.net browse for folder

System.Windows.Forms;
FolderBrowserDialog ÌṩÁËÎÒÃÇÐèÒªµÄÎļþ¼Ðä¯ÀÀ¶Ô»°¿ò£¬ÒòΪÊÇCOM±ØÐëÊÇSTAµÄ£¬ÉèÖà AspCompat="true"À´½â¾öÕâ¸öÎÊÌâ¡£
Ó÷¨£º
    protected void Button1_Click(object sender, EventArgs e)
    {
 
         ......

ÔÚASP.NETÖÐʹÓÃTreeview¿Ø¼þºÍXML


ÔÚASP.NETÖÐʹÓÃTreeview¿Ø¼þºÍXML
ÒÔÇ°£¬ÔÚWEBÒ³ÃæÖÐÈç¹ûÏëʹÓÃÊ÷ÐοؼþµÄ»°£¬ÍùÍù»áÓÐЩÂé·³£¬ÓÐʱÉõÖÁÒª×Ô¼ºÐ´´úÂëÀ´´ïµ½ÓÃÊ÷ÐÎÁбíÏÔʾÊý¾ÝµÄÄ¿µÄ¡£ÔÚasp.netÖУ¬ÎÒÃÇ¿ÉÒԺܷ½±ãµØʹÓÃÓÉ΢ÈíÌṩµÄInternet Exploer Web Controls¿Ø¼þÀ´ÊµÏÖÊ÷ÐÎÁÐ±í¡£ÔÚ΢ÈíÌṩµÄÕâÌ×Internet Exploere Web Controls¿Ø¼þ¼¯ºÏÖУ¬°üÀ ......

asp.netÔËÐÐÔ­Àí


 
Ö÷ÒªÀࣺ
¡¡¡¡System.Web.HttpRuntime
¡¡¡¡System.Web.HttpApplicationFactory
¡¡¡¡System.Web.HttpApplication
¡¡¡¡System.Web.Compilation.BuildManager
¡¡¡¡System.Web.Compilation.ApplicationBuildProvider
¡¡¡¡System.Web.Compilation.BuildProvidersCompiler
¡¡¡¡System.Web.UI.PageHandlerFactory ......

ASP.NET¶ÁÈ¡EXCELÎļþµÄÈýÖÖ·½·¨


1.·½·¨Ò»£º²ÉÓÃOleDB¶ÁÈ¡EXCELÎļþ£º
°ÑEXCELÎļþµ±×öÒ»¸öÊý¾ÝÔ´À´½øÐÐÊý¾ÝµÄ¶ÁÈ¡²Ù×÷£¬ÊµÀýÈçÏ£º
public DataSet ExcelToDS(string Path)
{
string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" +"Data Source="+ Path +";"+"Extended Properties=Excel 8.0;";
OleDbConnection conn = new OleDbConnection(str ......

asp.netϵÄÊý¾Ýͼ

ͼƬ£º
http://hi.csdn.net/space-275744-do-album-picid-491613-goto-down.html
Êý¾Ý²¿·Ö²ÉÓÃÁËC#+ASP.NET+ORACLE DB
ͼ±í²¿·Ö²ÉÓÃÁËSQL SERVER 2005 µÄREPORTING SERVICE ¡£
½«REPORTING SERVICE²¿ÊðºÃÒԺ󣬲ÉÓÃC#µÄREPORT VIEWER¿Ø¼þ£¬¾Í¿ÉÒÔÁ¬µ½ÎÒÃDz¿ÊðºÃµÄREPORT£¬Ê¡È¥×Ô¼º¶¯ÊÖ»­Í¼µÄ²½Öè¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ