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

Asp.Net FormsÑé֤ʵÀý

ÔÚAsp.NetÌṩÁËÈýÖÖ³£ÓõÄÑéÖ¤·½Ê½£ºWindows·½Ê½ÊǺÍIIS½áºÏÆðÀ´¿ÉÒÔʵÏÖ»ù±¾¡¢ÕªÒª¡¢¼¯³É WindowsµÈÉí·ÝÑéÖ¤£»Passport·½Ê½ÊÇʹÓÃWindows Live IDµÄÕÊ»§À´½øÐÐͳһÑéÖ¤µÄ£»Forms·½Ê½ÊÇʹÓó£¼ûµÄ±íµ¥À´ÊµÏÖÑéÖ¤¡£
    Ò»¡¢ÆÕͨʵÏÖ·½Ê½
   
    ÕâÖÖ·½Ê½ÊÇ×î¼òµ¥µÄ£¬Ö»ÐèÒªÅäÖÃһϾͿÉÒÔÁË¡£
   
    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


Ïà¹ØÎĵµ£º

dz̸ASP.net°²È«±à³Ì

ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔǰµÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕß¶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......

ASP.NET

Áù¡¢CircleHotSpot Àà
      ÔÚ ImageMap ¿Ø¼þÖж¨ÒåÔ²ÐÎ×÷ÓõãÇøÓò¡£ÎÞ·¨¼Ì³Ð´ËÀà¡£
      ´ËÀàÔÚ ImageMap ¿Ø¼þÖж¨ÒåÒ»¸öÔ²ÐÎ×÷ÓõãÇøÓò¡£ÈôÒª¶¨Òå CircleHotSpot ¶ÔÏóÇøÓò£¬Ç뽫 X ÊôÐÔÉèÖÃΪ±íʾԲÐÎÇøÓòÖÐÐÄµÄ x ×ø±êµÄÖµ¡£½« Y ÊôÐÔÉèÖÃΪ±íʾԲÐÎÇøÓòÖÐÐÄµÄ y ......

̸ASP.NETÖд°ÌåµÄÆ®¶¯

 ±¾Îĺʹó¼Ò·ÖÏíµÄÊÇ.NETÖд°ÌåµÄÆ®¶¯¡£Ï£Íû¶Ô´ó¼ÒÓÐËù°ïÖú°É¡£
   ÓÃ.NETÖÆ×÷Æ®¶¯µÄ´°Ìåʱ£¬ÐèҪʹÓÃTimer¿Ø¼þ¡£Ê×ÏÈ£¬µ±´°Ìå¼ÓÔØÊ±É趨һ¸ö³õʼλÖã¬È»ºóÔÚ´°ÌåÖж¨ÒåÁ½¸öTimer¿Ø¼þ£¬ÆäÖÐtimer1ÓÃÀ´¿ØÖÆ´°Ìå´Ó×óÏòÓÒÆ®¶¯£¬timer2¿ØÖÆ´°Ìå´ÓÓÒÏò×óÆ®¶¯£¬µ±timer1Æô¶¯ºó£¬Ã¿¸ô0.01s£¬¶¼»áÔÚ´¥·¢µÄʼþÖиø ......

File Download Tips for asp.net


use http header
protected void Page_Load(object sender, EventArgs e)
{
string format = Convert.ToString(ViewData["format"]);
Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode("·ÑÓñ¨Ïú±í", Encoding.UTF8) + string.Forma ......

ASP.NET

      ListBox Web ·þÎñÆ÷¿Ø¼þʹÓû§Äܹ»´ÓÔ¤¶¨ÒåµÄÁбíÖÐÑ¡ÔñÒ»Ïî»ò¶àÏî¡£
 
Ò»¡¢·½°¸
ÈôÒªÒ»´ÎÏÔʾ¶à¸öÏʹÓû§Äܹ»´ÓÔ¤¶¨ÒåÁбíÖÐÑ¡ÔñÒ»¸ö»ò¶à¸öÏÇëʹÓà ListBox Web ·þÎñÆ÷¿Ø¼þ¡£ListBox ¿Ø¼þÓë DropDownList ¿Ø¼þµÄ²»Í¬Ö®´¦ÔÚÓÚ£¬Ëü¿ÉÒÔÒ»´ÎÏÔʾ¶à¸öÏʹÓû§Äܹ»Ñ¡Ôñ¶à¸öÏî£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ