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

asp.net³É³¤ÈÕ¼Ç

1¡¢½¨Á¢Êý¾Ý²ã Á¬½ÓÊý¾Ý¿â->½¨Á¢Êý¾Ý¼¯*.xsd->±íÖн¨Á¢²éѯ·½·¨
2¡¢½¨Á¢ÒµÎñÂß¼­²ã °ü×°TableAdapter·½·¨³ÉÀà
3¡¢½¨Á¢Ä¸°åÒ³ºÍÕ¾µãµ¼º½£¨ CSS´ýѧϰ£©
4¡¢Ê¹ÓÃÊý¾ÝÔ´Õ¹ÏÖÊý¾Ý ÎåÖÖÊý¾ÝÔ´ ±à¼­Êý¾ÝÔ´²ÎÊý ʹÓÃtableadapter·½·¨
5¡¢Ê¹ÓÃdropDownList¹ýÂËÖ÷-´Ó±¨±í
     ʹÓÃtableadapter·½·¨ÉèÖÃÊý¾ÝÔ´ÏÔʾÊý¾Ý
(1)ÔÚÖ÷±í¼ÓÈëÁÐʹÓÃHyperLinkField Ôö¼ÓÒ»ÁÐÁ´½Ó µ½´Ó±í
HYperLinkFieldµÄtextÊôÐÔÉèÖÃÒ»¸öÏÔʾµÄÁ´½ÓÃû×Ö
×Ö¶ÎDataNavigateUrlFieldsÊôÐ԰󶨵½³¬Á´½ÓµÄNavigateUrlÊôÐÔµÄ×Ö¶ÎÀý£ºProductID
                               DataNavigateUrlFormatStringÊôÐԶ԰󶨵½³¬Á´½ÓµÄNavigateUrlÊôÐÔµÄÖµÓ¦ÓõĸñʽÉ趨Àý£º             Default2.aspx?ProductID={0}
¿çÒ³´Ó±í WhereʹÓòÎÊýÔ´QueryString½ÓÊÕ´ÓÖ÷±í´«¹ýÀ´µÄ×ֶΠ
   (2)À©Õ¹ÖªÊ¶µã£ºImageField£¨Ê¹ÓÃURLÏòGridViewÌí¼ÓͼƬ£©
Ìí¼ÓÒ»¸öImageField,½«DataImageUrlField="PictureURL" //,ͼÏñURL°ó¶¨µ½PictureURL×Ö¶Î,
ÔÚºóÖôúÂëÖмÓÈ룺
   protected void Page_Load(object sender, EventArgs e)
    {
        DataTable dt = new DataTable();
        // define the table’s schema
        dt.Columns.Add(new DataColumn("PictureURL", typeof(string)));
        // Create the four records
        DataRow dr = dt.NewRow();
        dr["PictureURL"] = ResolveUrl("~/Images/bbs.sakuramoon.cn__13386124_34835.jpg");
        dt.Rows.Add(dr);
        dr = dt.NewRow();
        dr["PictureURL"] = ResolveUrl("~/Images/bbs.sakuramoon.cn__17892967_20501.jpg");
    &nbs


Ïà¹ØÎĵµ£º

ASP.NET ÌØÊâ×Ö·ûµÄÒâ˼(ûÍêÉÆ)

“<%#....%>” ÕâÊÇÊý¾Ý°ó¶¨£¬ÀïÃæ¿ÉÒÔµ÷ÓÃC#µÄ·½·¨¡£
“<%$....%>" û¼û¹ýÕâ¸ö¡£
“<%@...%>”Õâ¸öÊÇÒ³ÃæÖ¸Áһ°ã·ÅÔÚÿ¸öÒ³ÃæµÄ×²¿£¬¶ÔÒ³ÃæµÄÔËÐнøÐпØÖÆ£¬ÈçÉèÖûº´æ£¬ÒýÓÃÓû§¿Ø¼þ£¬µ¼ÈëÃüÃû¿Õ¼ä==
ÁíÍ⻹ÓÐÒ»¸ö<%= ...%>  Õâ¸ö=ºÅºóÒ²¿ÉÒÔµ÷ÓÃC#µÄ·½· ......

ASP.NET MVC2 ѧϰ±Ê¼ÇÖ®URL·ÓÉ

    н¨Ò»¸öĬÈϵÄASP.NET MVC2Ó¦ÓóÌÐò£¬ÏµÍ³»áĬÈϵÄÉú³É°üº¬»ù±¾¹¦ÄܵÄÓ¦ÓóÌÐò£¬²é¿´ÕâЩÉú³ÉµÄ´úÂ룬¿É°ïÖúÎÒÃÇÀí½âASP.NET MVC2¡£ÏÂÃæÊǶÔURL·ÓɵÄÀí½â£¬ÒÔ±¸Íü¡£
Ò»¡¢Global.asax.csÖеĴúÂ룺
public class MvcApplication : System.Web.HttpApplication
    {
  &n ......

asp.net,c#,vb,vbs,js¸÷¸öÓïÑÔµÄÓÊÏä·¢ËÍÔ´´úÂë

·¢ËͶËÒÔ163ΪÀý
Ò»¡¢asp.net°æ   using System.Web.Mail; //ÃüÃû¿Õ¼äÒýÓà
c#
        MailMessage mail = new MailMessage();
        mail.To = "shadow103@qq.com";  //½ÓÊÜÈ˵ÄÓÊÏä
     & ......

ASP.NetÖÐ×Ô¶¨ÒåHttp´¦Àí¼°Ó¦ÓÃÖ®HttpModuleƪ

HttpHandlerʵÏÖÁËÀàËÆÓÚISAPI ExtentionµÄ¹¦ÄÜ£¬Ëû´¦ÀíÇëÇó(Request)µÄÐÅÏ¢ºÍ·¢ËÍÏìÓ¦(Response)¡£HttpHandler¹¦ÄܵÄʵÏÖͨ¹ýʵÏÖIHttpHandler½Ó¿ÚÀ´´ïµ½¡£¶øHttpModuleʵÏÖÁËÀàËÆÓÚISAPI FilterµÄ¹¦ÄÜ¡£
HttpModuleµÄʵÏÖ
HttpModulesʵÏÖÁËÀàËÆÓÚISAPI FilterµÄ¹¦ÄÜ£¬ÔÚ¿ª·¢ÉÏ£¬Í¨³£ÐèÒª¾­¹ýÒÔϲ½Ö裺
±àдһ¸öÀà£¬Ê ......

½â¾övs2005²»Äܵ÷ÊÔASP.NET³ÌÐò

Òì³£Ïêϸ£º
1. ´íÎóÁбíûÓмǼ£¬±àÒëͨ¹ý¡£
2. ÏÔʾÊä³ö:
“WebDev.WebServer.EXE”(ÍйÜ): ÒѼÓÔØ“C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll”£¬ÒÑÌø¹ý·ûºÅ¼ÓÔØ¡£ÒѶÔÄ£¿é½øÐÐÁËÓÅ»¯²¢ÆôÓÃÁ˵÷ÊÔÆ÷Ñ¡ÏöÎҵĴúÂ딡£
“WebDev.WebServer ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ