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

ASP.NETʵÓÃÐÔ¼¼Çɾ«ÝÍ

1.Ö÷ÒªÃüÃû¿Õ¼ä:
1.<% @ Import Namespace="System.Data" %> ´¦ÀíÊý¾ÝʱÓõ½
2.   <% @ Import Namespace="System.Data.ADO" % >   ʹÓÃADO.net ʱÓõ½
3.   <% @ Import Namespace="System.Data.SQL" %>   SQL Server Êý¾Ý¿âרÓÃ
4.   <% @ Import Namespace="System.Data.XML" %>   ²»Óÿ´´¦ÀíXMLÓõ½
5.   <% @ Import Namespace="System.IO" %>   ´¦ÀíÎļþʱÓõ½
6.   <% @ Import Namespace="System.Web.Util" %>   ·¢Óʼþʱ´ó¼Ò»áÓõ½
7.   <% @ Import Namespace="System.Text" %> Îı¾±àÂëʱÓõ½
2.<%=...%>Óë<%#... %>µÄÇø±ð:
   ´ð:<%=...%>ÊÇÔÚ³ÌÐòÖ´ÐÐʱµ÷ÓÃ,<%#... %>ÊÇÔÚDataBind()·½·¨Ö®ºó±»µ÷ÓÃ
3.¿Ø¼þ½ÓÊÕÄÄЩÀàÐÍÊý¾Ý?
   ´ð:½ÓÊÕBindµÄ¿Ø¼þ,Ò»°ãÓÐdropDownList,DataList,DataGrid,ListBoxÕâЩ¼¯ºÏÐÔÖʵĿؼþ,¶ø±»À¦°ó   µÄÖ÷ÒªÊÇArrayList(Êý×é),Hashtable(¹þÏ¡±í),DataView(Êý¾ÝÊÓͼ),DataReaderÕâËĸö,ÒÔºóÎÒÃǾͿÉÒÔ   ¶ÔºÅÈë×ù,²»»á³öÏÖDataTable±»À¦°óµÄ´íÎóÁË£º£©
4.DataBind,»ñµÃµÄÊý¾Ý,ϵͳ»á½«ÆäĬÈÏΪString,ÔõÑùת»¯ÎªÆäËüµÄÀàÐÍ?
   DataBinder.Eval(Container.DataItem,"ת»»µÄÀàÐÍ","¸ñʽ")
   ×îºóÒ»¸ö"¸ñʽ"ÊÇ¿ÉÑ¡µÄ,Ò»°ã²»ÓÃÈ¥¹ÜËû,Container.DataItemÊÇÀ¦°óµÄÊý¾ÝÏî,"ת»»ÀàÐÍ"Ö¸µÄÊÇ Integer,String,BooleanÕâÒ»Àà¶«Î÷.
5.Connections(SQLConection »òÕß ADOConnection)µÄ³£ÓÃÊôÐԺͷ½·¨:
1.| ConnectionString È¡µÃ»òÉèÖÃÁ¬½áÊý¾Ý¿âµÄÓï¾ä
2.   | ConnectionTimeout È¡µÃ»òÉèÖÃÁ¬½áÊý¾Ý¿âµÄ×ʱ¼ä,Ò²ÊǾͳ¬Ê±Ê±¼ä
3.   | DataBase È¡µÃ»òÉèÖÃÔÚÊý¾Ý¿â·þÎñÆ÷ÉÏÒª´ò¿ªµÄÊý¾Ý¿âÃû
4.   | DataSource È¡µÃ»òÉèÖÃDSN,´ó¼Ò²»»áİÉú°É£º£©
5.   | Password È¡µÃ»òÉèÖÃÃÜÂë
6.   | UserID È¡µÃ»òÉèÖõǽÃû
7.   | State È¡µÃĿǰÁª½áµÄ״̬
8.   | Open() ´ò¿ªÁª½á
9.   | Close() ¹Ø±ÕÁª½á
10.   | Clone() ¿Ë¡һ¸öÁª½á¡££¨ºÇºÇ,ÃàÑò¿ÉÒÔConnectionÎÒÒ²¿ÉÒÔ)
11.ʾÀý:
12.SQLConnection myConnection = new SQLConnecti


Ïà¹ØÎĵµ£º

ѧϰASP.NETÐèÇóµÄ»ù±¾µÄc#֪ʶ£¨×ªÌû+ÒÑÐ޸ģ©

£¨±¸×¢£ºÎÄÖкìÉ«×ÖÌåÊÇÎÒÔÚÔ­ÎĵĻù´¡ÉÏÌí¼ÓµÄ½âÊÍ˵Ã÷£©
 Î¢ÈíµÄʵÀý½Ì²ÄÖн²ÁËÈýÖÖÓïÑÔ£ºc#¡¢vb   ¡¢Jscript£¬ÎªÁËÈôó¼Ò¹ýÒ»°Ñж«Î÷ñ«£¬ÎÒÃÇ»¹ÊÇѧc#°É¡£Õâ¸ö×îºÃÓÐÒ»µãc++»ù´¡¡£    
  ²»¹ýûÓÐҲûÓйØÏµ£¬´ó²»Á˶à·ÑµãÁ¦ÁË¡£    
  ÈκÎÒ»ÃÅÓ ......

ASP.NET MVC¿ò¼Ü,ajax,jquery¿ª·¢ÏµÁпγÌ

http://www.microsoft.com/china/msdn/events/webcasts/shared/webcast/Series/MVC.aspx
http://www.cnblogs.com/chsword/archive/2009/03/11/zd_mvc1.html
jQuery¿ò¼Üѧϰ:http://www.zz68.net/WebDesign/js/200907/0H611P2009.html
ASP.NET ÖеÄÉè¼ÆÄ£Ê½Ö®MVCƪ:http://www.cnblogs.com/superhasty/archive/2005/06/08 ......

asp.net ·¢ÓʼþÍêÕûÀàʵÁÐ

    public class ToEmial
    {
        string _to;
        string _title;
        string _content;
        string _strHost;
......

asp.netÁ¬access

1¡¢¾ø¶Ô·¾¶Á¬½Ó×Ö·û´®
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\somepath\myDb.mdb
2¡¢Ïà¶Ô·¾¶Á¬½Ó×Ö·û´®
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/date/fghsdf.mdb")
¿ÉÒÔÓãº
web.config:
<appSettings>
 <add key="ConnectString" value="Provider=Mic ......

ASP.netÑéÖ¤Âë

¿ì¹ýÄ꣬ºÃ¾Ãûдʲô¶«Î÷ÁË¡£²»ÖªµÀ×î½üÊÇ̫æÁË£¬»¹ÊÇ×Ô¼ºÓеãÀÁ£¬Ð´Ð©×Ô¼º»ýÀ۵Ķ«Î÷¡£¶¼ÊÇЩ×î»ù±¾µÄÓ¦Ó㬺ʹó¼Ò·ÖÏíÏ¡£
ÑéÖ¤ÂëÔÚºÜ¶àµØ·½¶àÓõ½£¬ÍøÉϸ÷ÖÖÐÎÐÎɫɫµÄ´úÂëÒ³ºÜ¶àÁË£¬ÎÒ¾ÍÊÇ´ò·¢µãʱ¼äддÁË¡£
Ô­Àí£ºÍ¨¹ýGUI+Éú³ÉÓÐËĸöÊý×ÖµÄͼƬ£¬½«ËĸöÊý×Ö´æ·Åµ½SessionÖУ¬È»ºóͨ¹ýÑéÖ¤ÄãÊäÈëµÄÑéÖ¤ÂëºÍSession ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ