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

ASP.NETÊý¾Ý°ó¶¨¸ÅÊöºÍÓï·¨

 Êý¾Ý°ó¶¨¸ÅÊöºÍÓï·¨
ASP.NET ÒýÈëÁËеÄÉùÃ÷ÐÔÊý¾Ý°ó¶¨Óï·¨¡£ÕâÖַdz£Áé»îµÄÓï·¨ÔÊÐí¿ª·¢ÈËÔ±²»½ö¿ÉÒ԰󶨵½Êý¾ÝÔ´£¬¶øÇÒ¿ÉÒ԰󶨵½¼òµ¥ÊôÐÔ¡¢¼¯ºÏ¡¢±í´ïʽÉõÖÁÊÇ´Ó·½·¨µ÷Ó÷µ»ØµÄ½á¹û¡£Ï±íÏÔʾÁËÐÂÓï·¨µÄһЩʾÀý¡£
¼òµ¥ÊôÐÔ Customer: <%# custID %>
¼¯ºÏ Orders: <asp:ListBox id="List1" datasource='<%# myArray %>' runat="server">
±í´ïʽ Contact: <%# ( customer.First Name + " " + customer.LastName ) %>
·½·¨½á¹û Outstanding Balance: <%# GetBalance(custID) %>
¾¡¹Ü¸ÃÓï·¨¿´ÆðÀ´Óë ASP µÄ Response.Write ¿ì½Ý·½Ê½ <%= %> ÏàËÆ£¬µ«ÆäÐÐΪÍêÈ«²»Í¬¡£ASP Response.Write ¿ì½Ý·½Ê½Óï·¨ÔÚ´¦Àíҳʱ¼ÆË㣬¶ø ASP.NET Êý¾Ý°ó¶¨Óï·¨½öÔÚµ÷Óà DataBind ·½·¨Ê±¼ÆËã¡£
DataBind ÊÇÒ³ºÍËùÓзþÎñÆ÷¿Ø¼þµÄ·½·¨¡£µ±ÔÚ¸¸¿Ø¼þÉϵ÷Óà DataBind ʱ£¬Ëü¼¶Áªµ½¸Ã¿Ø¼þµÄËùÓÐ×ӿؼþ¡£ÀýÈ磬DataList1.DataBind() ½«Òò´Ë¶Ô DataList Ä£°åÖеÄÿһ¿Ø¼þµ÷Óà DataBind ·½·¨¡£ÔÚÒ³Éϵ÷Óà DataBind - Page.DataBind() »òÖ»ÊÇ DataBind() - »áµ¼Ö¼ÆËãÒ³ÉϵÄËùÓÐÊý¾Ý°ó¶¨±í´ïʽ¡£Í¨³£´Ó Page_Load ʼþµ÷Óà DataBind£¬ÈçÏÂÀýËùʾ¡£
protected void Page_Load(Object Src, EventArgs E) {
DataBind();
}
Protected Sub Page_Load(Src As Object, E As EventArgs)
DataBind()
End Sub
protected function Page_Load(Src:Object, E:EventArgs) : void {
DataBind();
}
Èç¹û°ó¶¨±í´ïʽÔÚÔËÐÐʱ¼ÆËãΪԤÆÚµÄÊý¾ÝÀàÐÍ£¬Ôò¿ÉÒÔÔÚ .aspx Ò³µÄÉùÃ÷½ÚÖеļ¸ºõÈκÎλÖÃʹÓð󶨱í´ïʽ¡£ÉÏÃæµÄ¼òµ¥ÊôÐÔ¡¢±í´ïʽºÍ·½·¨Ê¾ÀýÔÚ¼ÆËãʱÏòÓû§ÏÔʾÎı¾¡£ÕâЩÇé¿öÏ£¬Êý¾Ý°ó¶¨±í´ïʽ±ØÐë¼ÆËãΪ String ÀàÐ͵ÄÖµ¡£ÔÚ¼¯ºÏʾÀýÖУ¬Êý¾Ý°ó¶¨±í´ïʽ¼ÆËãΪ ListBox µÄ DataSource ÊôÐÔµÄÓÐЧÀàÐÍÖµ¡£Äú¿ÉÄܻᷢÏÖÓбØҪת»»°ó¶¨±í´ïʽÖеÄÀàÐÍÖµÒÔ²úÉúËùÐèµÄ½á¹û¡£ÀýÈ磬Èç¹û count ÊÇÕûÊý£º
Number of Records: <%# count.ToString() %>
°ó¶¨µ½¼òµ¥ÊôÐÔ
ASP.NET Êý¾Ý°ó¶¨Óï·¨Ö§³Ö°ó¶¨µ½¹«¹²±äÁ¿¡¢Ò³µÄÊôÐÔºÍÒ³ÉÏÆäËû¿Ø¼þµÄÊôÐÔ¡£
ÏÂÃæµÄʾÀý˵Ã÷ÈçºÎ°ó¶¨µ½¹«¹²±äÁ¿ºÍÒ³Éϵļòµ¥ÊôÐÔ¡£×¢ÒâÕâЩֵÔÚ DataBind() µ÷ÓÃÇ°³õʼ»¯¡£
<html>
<head>
<script language="C#" runat="server">
void Page_Load(Object sender, EventArgs e) {
Page.DataBind();
}
string custID{
get {
return "A


Ïà¹ØÎĵµ£º

130 asp.net ÃæÊÔÌâ

 1. ¼òÊö private¡¢ protected¡¢ public¡¢ internal ÐÞÊηûµÄ·ÃÎÊȨÏÞ¡£
´ð . private : ˽ÓгÉÔ±, ÔÚÀàµÄÄÚ²¿²Å¿ÉÒÔ·ÃÎÊ¡£
protected : ±£»¤³ÉÔ±£¬¸ÃÀàÄÚ²¿ºÍ¼Ì³ÐÀàÖпÉÒÔ·ÃÎÊ¡£
public : ¹«¹²³ÉÔ±£¬ÍêÈ«¹«¿ª£¬Ã»ÓзÃÎÊÏÞÖÆ¡£
internal: ÔÚͬһÃüÃû¿Õ¼äÄÚ¿ÉÒÔ·ÃÎÊ¡£
2 .ÁоÙASP.NET Ò³ÃæÖ®¼ä´«µÝÖµµÄ¼¸ÖÖ·½Ê½ ......

ASP.NETÉú³ÉËæ»úÃÜÂë

ASP.NETÉú³ÉËæ»úÃÜÂë
ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
public static stri ......

ASP.NETÖг£ÓõÄ26¸öÓÅ»¯ÐÔÄÜ·½·¨(6


 
6. Ö»Òª¿ÉÄÜ£¬¾Í»º´æÊý¾ÝºÍÒ³Êä³ö ¡¡¡¡
ASP.NET ÌṩÁËһЩ¼òµ¥µÄ»úÖÆ£¬ËüÃÇ»áÔÚ²»ÐèҪΪÿ¸öÒ³ÇëÇó¶¯Ì¬¼ÆËãÒ³Êä³ö»òÊý¾Ýʱ»º´æÕâЩҳÊä³ö»òÊý¾Ý¡£ÁíÍ⣬ͨ¹ýÉè¼ÆÒª½øÐлº´æµÄÒ³ºÍÊý¾ÝÇëÇó(ÌرðÊÇÔÚÕ¾µãÖÐÔ¤ÆÚ½«ÓнϴóͨѶÁ¿µÄÇøÓò)£¬¿ÉÒÔÓÅ»¯ÕâЩҳµÄÐÔÄÜ¡£Óë .NET Framework µÄÈκΠWeb ´°Ì幦ÄÜÏà±È£¬Êʵ±µØÊ ......

iisÊôÐÔûÓÐasp.net Ñ¡Ïî


1£¬Èç¹ûÊÇÖ»°²×°ÁË.net framework 1.1 ÔÚiisÖÐÊDz»ÏÔʾÄǸöÑ¡ÏµÄ¡£Ä¬ÈϾͻáÖ§³Öasp.net1.1¡£ÔÚ°²×°ÁË.net framework 2.0ºó£¬iisÕ¾µãÊôÐÔÀï²Å»áÓÐasp.netµÄÑ¡Ïî¡£
2£¬°²×°asp.net2.0ºó£¬Çë¹Ø±Õiis´°¿Ú£¬ÖØдò¿ªiis£¬iisÕ¾µãÊôÐÔÀï²Å»áÓÐasp.netµÄÑ¡Ïî
3£¬Èç¹û»¹Ã»ÓУ¬ÄÇô¾ÍÒªÖØÐÂÔÚIISÖÐ×¢²áasp.net£¬·½·¨ÈçÏ£º ......

½ÌÄãÈçºÎʵÏÖASP.NETÖÐÍøÕ¾·ÃÎÊÁ¿µÄͳ¼Æ


ÏÂÃæ½éÉÜÈçºÎ½øÐÐASP.NETÖÐÍøÕ¾·ÃÎÊÁ¿µÄͳ¼Æ¡£
Ò»¡¢½¨Á¢Ò»¸öÊý¾Ý±íIPStatÓÃÓÚ´æ·ÅÓû§ÐÅÏ¢
ÎÒÔÚIPStat±íÖдæ·ÅµÄÓû§ÐÅÏ¢Ö»°üÀ¨µÇ¼Óû§µÄIP£¨IP_Address£©£¬IPÀ´Ô´£¨IP_Src£©ºÍµÇ¼ʱ¼ä£¨IP_DateTime£©£¬Ð©±íµÄÐÅÏ¢±¾ÈËÖ»±£´æÒ»ÌìµÄÐÅÏ¢£¬Èç¹ûҪͳ¼Æÿ¸öÔµÄÐÅÏ¢ÔòÒª±£´æÒ»¸öÔ¡£
¶þ¡¢ÔÚGlobal.asaxÖлñÈ¡Óû§ÐÅÏ¢ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ