Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

ASP.NET


      Image Web ·þÎñÆ÷¿Ø¼þʹÄú¿ÉÒÔÔÚ ASP.NET ÍøÒ³ÉÏÏÔʾͼÏñ£¬²¢ÓÃ×Ô¼ºµÄ´úÂë¹ÜÀíÕâЩͼÏñ¡£
 
Ò»¡¢±³¾°
¿ÉÒÔÔÚÉè¼ÆÊ±»òÔËÐÐʱÒÔ±à³Ì·½Ê½Îª Image ¶ÔÏóÖ¸¶¨Í¼ÐÎÎļþ¡£»¹¿ÉÒÔ½«¿Ø¼þµÄ ImageUrl ÊôÐ԰󶨵½Ò»¸öÊý¾ÝÔ´£¬ÒÔ¸ù¾ÝÊý¾Ý¿âÐÅÏ¢ÏÔʾͼÐΡ£
Óë´ó¶àÊýÆäËû Web ·þÎñÆ÷¿Ø¼þ²»Í¬£ ......

ASP.NETµÄʵÓôúÂë

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º

´«ËͲÎÊý£º
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryStrin ......

ASP.NET

      ListBox Web ·þÎñÆ÷¿Ø¼þʹÓû§Äܹ»´ÓÔ¤¶¨ÒåµÄÁбíÖÐÑ¡ÔñÒ»Ïî»ò¶àÏî¡£
 
Ò»¡¢·½°¸
ÈôÒªÒ»´ÎÏÔʾ¶à¸öÏʹÓû§Äܹ»´ÓÔ¤¶¨ÒåÁбíÖÐÑ¡ÔñÒ»¸ö»ò¶à¸öÏÇëʹÓà ListBox Web ·þÎñÆ÷¿Ø¼þ¡£ListBox ¿Ø¼þÓë DropDownList ¿Ø¼þµÄ²»Í¬Ö®´¦ÔÚÓÚ£¬Ëü¿ÉÒÔÒ»´ÎÏÔʾ¶à¸öÏʹÓû§Äܹ»Ñ¡Ôñ¶à¸öÏî£ ......

ASP.NET

¿ÉÒÔʹÓà Literal Web ·þÎñÆ÷¿Ø¼þ×÷ÎªÒ³ÃæÉÏÆäËûÄÚÈݵÄÈÝÆ÷¡£
 
Ò»¡¢·½°¸
Literal ×î³£ÓÃÓÚÏòÒ³ÃæÖж¯Ì¬Ìí¼ÓÄÚÈÝ¡£
 
¶þ¡¢±³¾°
Literal ¿Ø¼þ±íʾÓÃÓÚÏòÒ³ÃæÌí¼ÓÄÚÈݵöÑ¡ÏîÖ®Ò»¡£¶ÔÓÚ¾²Ì¬ÄÚÈÝ£¬ÎÞÐèʹÓÃÈÝÆ÷£¬¿ÉÒÔ½«±ê¼Ç×÷Ϊ HTML Ö±½ÓÌí¼Óµ½Ò³ÃæÖС£µ«ÊÇ£¬Èç¹ûÒª¶¯Ì¬Ìí¼ÓÄÚÈÝ£¬Ôò±ØÐ뽫ÄÚÈÝÌí¼Óµ½ÈÝÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ