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

ASPÄÚÖöÔÏó¼°Æä×÷ÓÃ

Ò»¡¢Application¶ÔÏó
Application¶ÔÏóÊǸöÓ¦ÓóÌÐò¼¶µÄ¶ÔÏó£¬ÓÃÀ´ÔÚËùÓÐÓû§¼ä¹²ÏíÐÅÏ¢£¬²¢¿ÉÒÔÔÚWebÓ¦ÓóÌÐòÔËÐÐÆÚ¼ä³Ö¾ÃµØ±£³ÖÊý¾Ý¡£
ApplicationµÄÊôÐÔ£º
Application¶ÔÏóûÓÐÄÚÖõÄÊôÐÔ£¬µ«ÊÇÎÒÃÇ¿ÉÒÔ×ÔÐд´½¨ÆäÊôÐÔ¡£
<% Application(”ÊôÐÔÃû”)=Öµ %>
´ó²¿·ÖApplication±äÁ¿¶¼¡¡´æ·ÅÔÚContents¼¯ºÏÖУ¬µ±´´½¨Ò»¸öеÄApplication±äÁ¿Ê±£¬Æäʵ¾ÍÊÇÔÚContents¼¯ºÏÖÐÌí¼ÓÁËÒ»Ïî¡£ÏÂÃæÁ½¸ö½Å±¾ÊǵÈЧµÄ£º
<% Application(”greeting”)=”hello!” %> »ò <% Application.contents(”greeting”)=”hello!”ÓÉÓÚApplication±äÁ¿´æÔÚ¼¯ºÏÀËùÒÔ
Èç¹ûÏëҪȫ²¿ÏÔʾ, ¿ÉÒÔʹÓÃFor EachÑ­»·¡£
<%
For Each item IN Application.Contents
Response.write(”<br>”&item&Application.Contents(item))
next
%>
ApplicationµÄ·½·¨£º
ApplicationµÄ·½·¨Ö»ÓÐÁ½¸ö·½·¨£ºÒ»¸öÊÇLock£¬ÁíÒ»¸öÊÇUnlock¡£ÆäÖÐLock·½·¨ÓÃÓÚ±£Ö¤Í¬Ò»Ê±¿ÌÖ»ÄÜÒ»¸öÓû§¶ÔApplication²Ù×÷¡£
UnlockÔòÓÃÓÚÈ¡ÏûLock·½·¨µÄÏÞÖÆ¡£È磺
<%
Application.Lock
Application(”visitor_num”)=Application(”visitor_num”)+1
Application.Unlock
%>
ApplicationµÄʼþ£º
1¡¢Application_OnStart()
µ±Ê¼þÓ¦ÓóÌÐòÆô¶¯Ê±´¥·¢¡£
2¡¢Application_OnEnd()
´ËʼþÓ¦ÓóÌÐò½áÊøʱ´¥·¢¡£
ÕâÁ½¸öʼþ¹ý³Ì¶¼ÊDZØÐ붨ÒåÔÚGlobal.aspÎļþÖУ¬Ò»°ã°ÑÁ¬½ÓÊý¾ÝµÄº¯Êý¶¨ÒåÔÚÕâÁ½¸öʼþ£¬È»ºó·ÅÔÚGlobal.aspÖС£ÀýÈ磺
Sub Application_OnStart
Application(”tt18_ConnectionString”) = “driver={SQL
Server};server=jeff;uid=sa;pwd=;database=test”
End Sub
Ò»¸öÊý×éÄܹ»±»¶¨Òå³ÉApplication¶ÔÏ󣬲»¹ýÕâ¸öÊý×éÖ»ÄÜ×÷Ϊһ¸ö¶ÔÏ󱣴棬¶ø²»ÄÜÓÃApplication(0)È¡³öÆäÖµ¡£¿ÉÒÔ¶¨ÒåÒ»¸öÁÙʱÊý
×éʵÏÖÕâÖÖ¹¦ÄÜ¡£È磺
<%
dim Array()
Array=Application(”array”)
for i = 0 to ubound(array)
Response.write Array(i)
next i
%>
ͬÑùÒªÐÞ¸ÄÕâ¸öApplication¶ÔÏóÒ²¿ÉÒÔ¶¨ÒåÒ»¸öÁÙʱÊý×飬°ÑApplication¶ÔÏ󸳸øÊý×飬ȻºóÐÞ¸ÄÕâ¸öÊý×éµÄÔªËØ£¬×îºó°ÑÊý×鸳»Ø
Application¶ÔÏó¡£È磺
<%
dim Array()
Array=Application(”array”)
Arr


Ïà¹ØÎĵµ£º

aspÔ¶³Ì·ÃÎÊsql serverÊý¾Ý¿â


<%
set conn=server.createobject("adodb.connection")
conn.connectionstring="PROVIDER=MSDASQL;DRIVER={SQL Server};SERVER=210.76.209.130;DATABASE=databasename;UID=sa;PWD=password;"
conn.open
%>
ÆäÖÐ 210.76.209.130 ¾ÍÊÇÔ¶³Ì·þÎñÆ÷µÄIP
¶þ¡¢ÎÒÓÃVBдÁ˸ö¹ÜÀíÈí¼þ,²¢²ÉÈ¡PINGÔ¶³Ì·þÎñÆ÷ÓòÃûµÄ ......

ASP»ñÈ¡µ±Ç°ÎļþÃûµÄ·½·¨ ÀûÓú¯ÊýInstrRev()

¡¡¡¡ÔÚASP±à³ÌµÄ¹ý³ÌÖУ¬»ñÈ¡µ±Ç°²Ù×÷µÄÎļþµÄÎļþÃû£¬ÊÇÒ»¸ö·Ç³£³£ÓõĶ¯×÷£¬ASPºÃÏñûÓÐ×Ô¼ºÄÚÖú¯Êý£¬ËùÒÔÕâ¸ö²Ù×÷ÎÒÃÇÐèÒª×Ô¼º±àº¯ÊýÀ´Íê³É¡£½ñÌìÒ»¸öÀÏÅóÓÑÎÊÎÒÔõô×ö£¬ÎÒã¶ÁËһϣ¬»¹ÔÚÏëÓÐûÓÐÄÚÖú¯Êý£¬ÊµÔÚûÏëÆðÀ´£¬²»ÖªµÀÊÇÕæµÄûÓл¹ÊÇÎÒ²»ÖªµÀ¡£ºÇºÇ~²»¹ÜÁË£¬×îºóÎÒ»¹ÊÇ×Ô¼ºÐ´ÁËÒ»¸öСº¯ÊýÀ´Íê³ÉµÄ£¬²»¹ý²»ÊÇÎ ......

ASP.NET ÈçºÎ£º¶ÔÕÕÌض¨ÖµÑéÖ¤ ASP.NET ·þÎñÆ÷¿Ø¼þ


      ͨ¹ýʹÓà ASP.NET ÑéÖ¤¿Ø¼þ£¬¿ÉÒÔʹÓÃÂß¼­ÔËËã·û¶ÔÕÕÒ»¸öÌض¨ÖµÀ´ÑéÖ¤Óû§ÊäÈë¡£ÀýÈ磬Äú¿ÉÒÔÖ¸¶¨Óû§ÊäÈë±ØÐëÊÇ“1950 Äê 1 Ô 1 ÈÕ”Ö®ºóµÄÈÕÆÚ£¬»òÊÇÒ»¸ö´óÓÚµÈÓÚ 0 µÄÕûÊýÖµ¡£»òÕߣ¬Äú»¹¿ÉÒÔÖ¸¶¨½«Óû§ÊäÈëÓëÁíÒ»¿Ø¼þµÄÖµ½øÐбȽϡ£
1¡¢½« CompareValidator ¿Ø¼þÌí¼Óµ½Ò³Ö ......

ASP.NET ÑÝÁ·£ºÒÔ±à³Ì·½Ê½¿ØÖÆ ASP.NET ²Ëµ¥


±¾ÑÝÁ·Í¨¹ýʹÓôúÂëЭµ÷ͬһҳÉϵÄÁ½¸ö²Ëµ¥£¬ÑÝʾÈçºÎÒÔ±à³Ì·½Ê½Ê¹Óà ASP.NET Menu ¿Ø¼þ¡£
¿ÉÒÔʹÓà ASP.NET Menu ¿Ø¼þΪÍøÕ¾´´½¨µ¼º½²Ëµ¥¡£ÔÚ±¾ÑÝÁ·ÖУ¬½«¿¼²ì ASP.NET Menu ¿Ø¼þµÄ±à³Ì·½Ã棬²¢´´½¨Á½¸öЭͬ¹¤×÷µÄ²Ëµ¥£¬ËüÃǶ¼°ó¶¨µ½Í¬Ò»¸ö Web.sitemap Îļþ¡£µÚÒ»¸ö²Ëµ¥ÊǾ²Ì¬ÏÔʾµÄÀà±ð£¨Èç²úÆ·¡¢·þÎñºÍÖ§³Ö£©²Ëµ¥¡£Ë ......

Microsoft ASP.NETѧϰ±Ê¼Ç£¨1£©ÎÒÑÛÖеÄASP.NET

Microsoft ASP.NETѧϰ±Ê¼Ç£¨1£©ÎÒÑÛÖеÄASP.NET
ÒÔÇ°Ò»Ö±ÓõÄJava, J2EEƽ̨£¬ÏÖÔÚÒòΪ¿ÎÌâÐèÒª³õѧÁËÒ»ÏÂASP.NET£¬Ð¡Ì¸Ò»Ï¶þÕß×öWEB¿ª·¢µÄÌå»á¡£
¶¼Ëµ.NET×öWEB¿ª·¢Ð§Âʸߣ¬ÎÒµÄÌå»á¾ÍÊÇMSµÄ¶«Î÷ÓÃמÍÊÇ·½±ã£¬Ò»¸ö¿Ø¼þ·ÅÉÏÈ¥£¬É輸¸öÊôÐÔ£¬Ì¸öʼþ£¬Ð´¼¸¸öSQL£¬¾Í³ÉÁË£¬¾õµÃÕâÖÖģʽ¸úÔ­À´ASPµÄÄǸö´úÂëÔËÐÐÆðÀ´Ð§ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ