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

Asp.net MVC2ѧϰ±Ê¼Ç6 ¼òµ¥ÊµÀý(Movie)(ÏÂ)

½ñÌìÎÒÃǼÌÐøÍê³É Õâ¸ö MVC2 ¼òµ¥ÊµÀýµÄÊ£Ó๦ÄÜ£ºÏÔʾÃ÷ϸ¡¢Ìí¼Ó¡¢±à¼­µÈ¡£¡£¡£¡£¡£
Ò»¡¢ÏÔʾÃ÷ϸ
¡¡¡¡ÔÚ MoviewsControllerÖÐµÄ Details·½·¨Àï ÓÒ¼ü--Add view£¬´´½¨Ò»¸öÇ¿ÀàÐ͵ÄÊÓͼ
¡¡¡¡
¡¡¡¡
È·¶¨ºó£¬Õâ¸öÃ÷ϸµÄÊÓͼÎļþ¾ÍÒѾ­Éú³É¡£¡£¡£
´Ëʱ£¬ÎÒÃÇÐèÒªÐÞ¸Ä Detials ·½·¨£¬¸ù¾Ý ´«µÝ¹ýÀ´µÄ id²ÎÊý£¬È¥Êý¾Ý¿â²éѯÎÒÃǵÄÊý¾Ý
//
        // GET: /Movies/Details/5
        public ActionResult Details(int id)
         {
             ViewData.Model = _dbEntities.MovieSet.First(m=>m.ID==id);
            return View();
         }
¶þ¡¢Ìí¼Ó¼Ç¼
¡¡¡¡ÎÒÃÇ¿´µ½ÓÐ2¸öCreate£¬µÚÒ»¸öÊÇ·µ»ØÊÓͼҳÃ棬µÚ¶þ¸öÊÇ´¦ÀíÌí¼ÓµÄÂß¼­¡£¡£
¡¡¡¡Ìí¼ÓÊÓͼ¾Í±È½Ï¼òµ¥ÁË£¬Ö±½ÓÔÚ Create·½·¨ÉÏÓÒ¼ü--add view£¬Ìí¼ÓÒ»¸öÇ¿ÀàÐ͵ÄÊÓͼ£¬ÄÚÈÝÑ¡ÔñCreate£¬¾ÍÍêÊÂÀ²£¬
F5 ÊÔÊÔ£¬Ìí¼ÓÒ³ÃæÊDz»ÊǾͳöÀ´ÁË£¿
´Ëʱ ÎÒÃÇÐèÒªÐÞ¸ÄÒ»ÏÂÒ³Ã棬ÒòΪÎÒÃÇ ID ÊÇ×Ô¶¯Éú³ÉµÄ£¬ËùÒÔÕâ±ßIDÓ¦¸Ã²»¿ÉÒÔÊäÈ룻
ÏÂÃæÎÒÃÇ¿´Ïºǫ́´¦ÀíÌí¼ÓµÄÂß¼­,ĬÈÏÉú³ÉµÄ Create·½·¨´øµÄ²ÎÊýÊÇ FormCollection£¬°üÀ¨Õû¸öformÀïÃæµÄ²ÎÊýµÄ¼¯ºÏ£¬
ÕâÀïÎÒÃÇÐÞ¸ÄһϲÎÊý¸Ä³ÉÎÒÃǵÄmodel£ºMovie£¬ÒòΪÎÒÃÇ´´½¨µÄÊÇÇ¿ÀàÐÍ£¬ËùÒÔÕâÀï¿ÉÒÔÖ±½ÓʹÓÃÕâ¸ömodel£¬
ÕâÀï Âß¼­²¿·Ö£¬ÎÒûÓÐ×öÆäËûÅжϣ¨È磺ÅжÏÊäÈëºÏ·¨ÐÔ£©£¬Ö±½Óµ÷Óà ʵÌåÊý¾ÝÄ£ÐÍ£¬Ìí¼Ó½øÊý¾Ý¿â¡£¡£¡£
//
        // POST: /Movies/Create
         [HttpPost]
        public ActionResult Create(Models.Movie model)
         {
            try
             {
                // TODO: Add insert logic here
&nb


Ïà¹ØÎĵµ£º

ASP.NETÖжÁÈ¡excelÄÚÈÝ,²¢ÏÔʾÔÚ½çÃæÉÏ

ÏîÄ¿Öо­³£»áÓõ½°ÑexcelµÄÎļþÄÚÈݵ¼Èëµ½Êý¾Ý¿âÖеÄ,¸Õ¸Õ»¨Á˵ãʱ¼ä,×öÁ˸öÀý×Ó,»ù±¾ÉÏÄÜʵÏÖµ¼ÈëExcelºóÏÔʾµÄ¹¦ÄÜ°É,µ¼ÈëµÄexcelÎļþµÃÊÇxls,¼´ÊÇ2003µÄ.
    ´úÂë˼·ÈçÏÂ:Òª¶ÁÈ¡µÄexcelÎļþ±ØµÃµÃÊÇÔÚ±¾µØÓ²ÅÌ,ËùÒÔÒ»°ãÀ´Ëµ¶¼ÊÇÈÃÔ¶³ÌÓû§Ñ¡Ôñ×Ô¼ºÓ²ÅÌÉϵÄExcelÎļþ,È»ºó°ÑÓû§Ñ¡ÔñµÄÎļþÉÏ´«µ½±¾µØ· ......

ASP.NET Cache_µÚ¶þƪ_ÈçºÎÏò»º´æÖÐÌí¼Ó»º´æÏî

+++ Äã¿ÉÒÔÔÚÓ¦ÓóÌÐòÖÐʹÓÃCache¶ÔÏó·ÃÎÊ»º´æÏʹÓÃCache¶ÔÏóµÄInsert·½·¨½«Ò»¸ö»º´æÏîÌí¼Óµ½Ó¦ÓóÌÐò»º´æÖУ¬¸Ã·½·¨ÓкܶàÖØÔØ·½·¨£¬ÈÃÄãÓò»Í¬µÄ»º´æ²ßÂÔ½«Ò»¸ö»º´æÏîÌí¼Óµ½»º´æÖС£
+++ Èç¹ûÄãÓÃInsert·½·¨Ïò»º´æÖÐÌí¼Ó»º´æÏ²¢ÇÒ»º´æÖдæÔÚͬÃû»º´æÏÄÇô£¬»º´æÖеÄͬÃû»º´æÏ±»Ìæ»»£¨¸²¸Ç£©¡£
+++ ÄãÒ²¿ÉÒÔ ......

ASP.NETÊý¾Ý°ó¶¨_µÚһƪ_¸ÅÊö

+++ ÊÂʵÉÏ£¬½«Êý¾Ý¼¯°ó¶¨µ½.NET¿Ø¼þ£¬¾ÍÊǽ«Êý¾Ý¿âµÄ±í»ò±íÖÐij¸ö×ֶζÁµ½ÄÚ´æµÄij¸ö½á¹¹À±ÈÈçDataTable£¬È»ºó°ÑÕâ¸öÊý¾Ý½á¹¹°ó¶¨µ½.NET¿Ø¼þ¡£
+++ Èç¹ûÄãÒÔǰʹÓùýC++ Builder»òÊÇDelphi£¬ÄÇôÄãÒ»¶¨¼ÇµÃ£¬°ó¶¨Êý¾Ý¿â¿Ø¼þÓëÒ»°ã¿Ø¼þÊÇ·Ö¿ªµÄ£¬ÕâÁ½ÖֿؼþÔÚ²»Í¬µÄ°üÖС£¶øÏÖÔÚµÄ.NET¿Ø¼þ¾Í·Ç³£Áé»î£¬Ëü¼È¿ÉÒÔ×÷Ϊһ°ã ......

ASP.NETÊý¾Ý°ó¶¨_µÚÈýƪ_ÓÃObjectDataSource¿Ø¼þ°ó¶¨

+++ Ò³Ãæ´úÂëÈçÏ£º
<asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1"
  AutoGenerateColumns="true" DataKeyNames="EMPNO">
</asp:GridView>   
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetEmp" TypeName="O ......

ASP.NETÍøÂç±à³Ì³£ÓõÄ27¸öº¯Êý

ASP.NETÍøÂç±à³ÌÖг£Óõ½µÄ27¸öº¯Êý¼¯
Abs(number) È¡µÃÊýÖµµÄ¾ø¶ÔÖµ¡£
Asc(String) È¡µÃ×Ö·û´®±í´ïʽµÄµÚÒ»¸ö×Ö·ûASCII Âë¡£
Atn(number) È¡µÃÒ»¸ö½Ç¶ÈµÄ·´ÕýÇÐÖµ¡£
CallByName (
object
, procname, usecalltype,[args()]) Ö´ÐÐÒ»¸ö¶ÔÏóµÄ·½·¨¡¢É趨»ò´«»Ø¶ÔÏóµÄÊôÐÔ¡£
CBool(expression) ת»»±í´ïʽΪBoolean ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ