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

Asp.Net¼¼Çɾ«ÝÍ

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


Ïà¹ØÎĵµ£º

jQueryµ÷ÓÃAsp.net AjaxÒ³ÃæÖеķ½·¨

Ô­À´ÓÃjQueryµÄajax·½Ê½µ÷ÓÃasp.netÒ³Ãæ»ù±¾¶¼Êǵ÷Óõ¥¸öÒ³Ã棬Óɵ÷ÓÃÒ³ÃæResponseÄÚÈÝ£¬¶øÏÖÔÚ²ÉÓÃasp.net ajaxºó£¬ÎÒÃÇÔò¿ÉÒÔ¸üÍêÃÀµÄʹÓÃjQueryºÍasp.net½áºÏÁË£¬´úÂëÈçÏ£º
 
<asp:ScriptManager ID="ScriptManager1" runat="server" >
<Scripts>
<asp:ScriptReference Path="http ......

½â¾öASP.NETÉÏ´«Îļþ´óСÏÞÖÆ

Ò»¡¢ÐÞ¸ÄÅäÖÃWeb.ConfigÎļþÖеÄhttpRuntime½Úµã
¶ÔÓÚasp.net,ĬÈÏÖ»ÔÊÐíÉÏ´«4MÎļþ,Ôö¼ÓÈçÏÂÅäÖÃ,Ò»°ã¿ÉÒÔ×Ô¶¨Òå×î´óÎļþ´óС.
Ò»¡¢ÐÞ¸ÄÅäÖÃWeb.ConfigÎļþÖеÄhttpRuntime½Úµã
¶ÔÓÚasp.net,ĬÈÏÖ»ÔÊÐíÉÏ´«4MÎļþ,Ôö¼ÓÈçÏÂÅäÖÃ,Ò»°ã¿ÉÒÔ×Ô¶¨Òå×î´óÎļþ´óС.
<httpRuntime
executionTimeout="800"
maxRequestLengt ......

.net½Ì³Ì:Asp.net ÖÐClientIDµÄÓ÷¨Ì½ÌÖ

¹ØÓÚClientIDµÄʹÓÃÎÒÓöµ½Ò»ÏÂÎÊÌ⣺
»ñÈ¡ÓÉ ASP.NET Éú³ÉµÄ·þÎñÆ÷¿Ø¼þ±êʶ·û¡£
ÎÊÌâÒ»£º Óû§¿Ø¼þµÄÒ³ÃæJavaScriptÖÐÐèҪʹÓÃAsp.netµÄ¿Ø¼þID£¬³öÏÖ²»Ò»Ö¡£
ÎÊÌâ¶þ£ºÄ¸°æÒ³µÄ×ÓÒ³ÃæJavaScriptÖÐÐèҪʹÓÃAsp.netµÄ¿Ø¼þID£¬³öÏÖ²»Ò»Ö¡£
½â¾ö°ì·¨£º
      document.getElementById("<% ......

asp.net wap 2.0 ʵÏÖ ishtml32 Ï ¼ÓÔØ cssÎļþ

ʹÓÃasp.net ¿ª·¢wap ÍøÕ¾£¬ÔÚishtml32Ï£¬Èç¹ûÊÖ»úä¯ÀÀÆ÷Ö§³Öishtml32,µ«ÊÇ SupportsCss=False ʱ£¬Ïë¼ÓÔØcssÎļþʱ£¬²ÉÓÃÖØдmobile:formµÄ·½·¨À´ÊµÏÖ
using System;
using System.Configuration;
using System.Web.UI.MobileControls;
using System.Web.UI.MobileControls.Adapters;
public class MyForm : Form
{ ......

ASP.NetÖÐMD5ºÍSHA1¼ÓÃܵļ¸ÖÖ·½·¨

Ê×Ïȼòµ¥½éÉÜÒ»ÏÂMD5ºÍSHA1:
MD5µÄÈ«³ÆÊÇMessage-Digest Algorithm 5£¨ÐÅÏ¢-ÕªÒªËã·¨£©£¬ÔÚ90Äê´ú³õÓÉMit Laboratory for Computer ScienceºÍRsa data security incµÄRonald l. rivest¿ª·¢³öÀ´£¬¾­md2¡¢md3ºÍmd4·¢Õ¹¶øÀ´¡£ËüµÄ×÷ÓÃÊÇÈôóÈÝÁ¿ÐÅÏ¢ÔÚÓÃÊý×ÖÇ©ÃûÈí¼þÇ©Êð˽ÈËÃܳ×Ç°±»"ѹËõ"³ÉÒ»ÖÖ±£Ãܵĸñʽ£¨¾ÍÊÇ°ÑÒ»¸öÈÎÒâ³ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ