Asp.Net FormsÑéÖ¤(×Ô¶¨Òå¡¢½ÇÉ«Ìṩ³ÌÐò¡¢µ¥µãµÇ¼)
Asp.Net FormsÑéÖ¤(×Ô¶¨Òå¡¢½ÇÉ«Ìṩ³ÌÐò¡¢µ¥µãµÇ¼)
ÒÔÇ°¿ª·¢ÏîĿʱ¾³£ÊÇ×Ô¼º¿ª·¢Ò»Ì×Óû§È¨ÏÞ¹ÜÀíϵͳ½øÐÐÑéÖ¤£¬±È½ÏÁé»î¡£×î½üΪÁ˵¥µãµÇ¼µÄÎÊÌâÓÖ°ÑAsp.Net×Ô´øµÄÑéÖ¤·½Ê½¿´ÁËÒ»±é£¬·¢ÏÖÕâÖÖ·½Ê½Ò²±È½Ï·½±ã£¬¹¦ÄÜÒ²»¹¿ÉÒÔ¡£ÔÚAsp.NetÌṩÁËÈýÖÖ³£ÓõÄÑéÖ¤·½Ê½£ºWindows·½Ê½ÊǺÍIIS½áºÏÆðÀ´¿ÉÒÔʵÏÖ»ù±¾¡¢ÕªÒª¡¢¼¯³É WindowsµÈÉí·ÝÑéÖ¤£»Passport·½Ê½ÊÇʹÓÃWindows Live IDµÄÕÊ»§À´½øÐÐͳһÑéÖ¤µÄ£»Forms·½Ê½ÊÇʹÓó£¼ûµÄ±íµ¥À´ÊµÏÖÑéÖ¤¡£
±¾ÎÄÖ÷Òª¾ÍÊÇÌÖÂÛFormsÑéÖ¤·½Ê½ÆÕͨʵÏÖ¡¢×Ô¶¨ÒåʵÏÖ¡¢×Ô¶¨Òå½ÇÉ«Ìṩ³ÌÐò¡¢ÈçºÎµ¥µãµÇ¼(¿ÉºÍMOSS½áºÏ)µÈ¼¸¸ö·½Ãæ¡£
Ò»¡¢ÆÕͨʵÏÖ·½Ê½
ÕâÖÖ·½Ê½ÊÇ×î¼òµ¥µÄ£¬Ö»ÐèÒªÅäÖÃһϾͿÉÒÔÁË¡£
1¡¢Ö´ÐÐaspnet_regsqlÃüÁÁ¢Êý¾Ý¿â
aspnet_regsqlÃüÁîÔÚC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727Ŀ¼Ï£¬°´ÌáʾÔËÐоͿÉÒÔÁË
2¡¢Ð½¨Ò»¸öwebÍøÕ¾
ÔÚWeb.ConfigÖмÓÈëÅäÖãº
<connectionStrings>
<add name="MySqlConnection" connectionString="Data Source=dbserver;Initial Catalog=database;user id=userid;password=****;" />
</connectionStrings>
<system.web>
<authorization>
<deny users="?"/>
</authorization>
<authentication mode="Forms">
<forms loginUrl="login.aspx" name=".ASPXAUTH"/>
</authentication>
<membership defaultProvider="SqlProvider">
<providers>
<clear />
<add connectionStringName="MySqlConnection" applicationName="MyApplication"
&n
Ïà¹ØÎĵµ£º
1.Init£¨³õʼ»¯½×¶Î£©
2.LoadViewState£¨ÔØÈëÊÓͼ״̬£©
3.LoadPostData£¨´¦Àí»Ø·¢Êý¾Ý£©
public virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
ÅжÏÊÓÍ ......
{0:d} YY-MM-DD
{0:p} °Ù·Ö±È00.00%
{0:N2} 12.68
{0:N0} 13
{0:c2} $12.68
{0:d} 3/23/2003
{0:T} 12:00:00 AM
{0:ÄÐ;;Å®}
DataGrid-Êý¾Ý¸ñʽÉèÖñí´ïʽ
Êý¾Ý¸ñʽÉèÖñí´ïʽ
.NET Framework ¸ñʽÉèÖñí´ïʽ£¬ËüÔÚÊý¾ÝÏÔʾÔÚÁÐÖÐ֮ǰÏÈÓ¦ÓÃÓÚÊý¾Ý¡£´Ë±í´ïʽÓÉ¿ÉÑ¡¾²Ì¬Îı¾ºÍÓÃÒÔϸñʽ± ......
aspÖÐSessionµÄ¹¤×÷ÔÀí£º
aspµÄSessionÊǾßÓнø³ÌÒÀÀµÐԵġ£ASP Session״̬´æÓÚIISµÄ½ø³ÌÖУ¬Ò²¾ÍÊÇinetinfo.exeÕâ¸ö³ÌÐò¡£ËùÒÔµ±inetinfo.exe½ø³Ì±ÀÀ£Ê±£¬ÕâЩÐÅÏ¢Ò²¾Í¶ªÊ§¡£ÁíÍ⣬ÖØÆð»òÕ߹رÕIIS·þÎñ¶¼»áÔì³ÉÐÅÏ¢µÄ¶ªÊ§¡£
asp.net SessionµÄʵÏÖ
asp.netµÄSessionÊÇ»ùÓÚHttpModule¼¼Êõ×öµÄ£¬HttpModule¿ÉÒÔÔÚÇëÇó±» ......
test.xml
<?xml version="1.0" encoding="utf-8" ?>
<root>
<R SecuCode="601600" Glossary="ѧITÍø²âÊÔ»ñÈ¡XML½á¹ûÏÔʾÕý³££¬¡£¡£¡£¡£¡£¡£¡£¹þ¹þ" />
<R SecuCode="600056" Glossary="²âÊÔµÚ¶þ¸ö£¬¡£¡£¡£¡£¡£¡£¡£¹þ¹þ" />
</root>
ÏÂÃæxml½âÎö ......
ASP.NET δ±»ÊÚȨ·ÃÎÊËùÇëÇóµÄ×ÊÔ´¡£Ç뿼ÂÇÊÚÓè ASP.NET ÇëÇó±êʶ·ÃÎÊ´Ë×ÊÔ´µÄȨÏÞ¡£ASP.NET ÓÐÒ»¸öÔÚÓ¦ÓóÌÐòûÓÐÄ£ÄâʱʹÓõĻù½ø³Ì±êʶ(ͨ³££¬ÔÚ IIS 5 ÉÏΪ {MACHINE}\ASPNET£¬ÔÚ IIS 6 ÉÏΪÍøÂç·þÎñ)¡£Èç¹ûÓ¦ÓóÌÐòÕýÔÚͨ¹ý Ä£Ä⣬Ôò±êʶ½«ÎªÄäÃûÓû§(ͨ³£Îª IUSR_MACHINENAME)»ò¾¹ýÉí·ÝÑéÖ¤µÄÇëÇóÓû§¡£
ÈôÒªÊÚÓè ......