Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ :

ASP.NETµÄĸ°æÖªÊ¶ÕªÒª


ĸ°æÒ³Ãæ
-- н¨Ò»Ä¸°æÒ³Ãæ
-- ÔÚÊʵ±Î»ÖüÓÈë´úÂ룺
<asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server">
...ÕâÖ®¼äµÄÄÚÈÝÈç¹ûûÓÐContentÄÚÈÝ£¬½«»áµÃµ½ÏÔʾ£»
...Èç¹ûÓÐContentÄÚÈÝ£¬½«»á±»ContentÄÚÈÝÌæ»»µô
</asp:ContentPlaceHolder>
ContentÒ³Ãæ
-- н¨Ò»WEB´°Ìå
-- ÔÚÊʵ±Î»ÖüÓÈë´úÂë
<asp:Content ContentPlaceHolderID=ContentPlaceHolder3 runat=server>
...ÕâÖ®¼äµÄÄÚÈݽ«»á²åÈëÔÚĸ°æ²åÈëµãλÖÃ
</asp:Content>
ĸ°æÖ®¼äʹÓü¶Áª£¬×Óĸ°æµ±×öÒ»¸öContent´¦Àí£¬µ«Èç¹ûÐèÒªÍêÕûÏÔʾ£¬±ØÐè°´ÏÂÃæµÄ²½Ö裺
Mainĸ°æ-->×Óĸ°æ-->Content   £»Õ⽫ÄÜÏÔʾMainĸ°æ£¬×Óĸ°æ£¬ContentÉϵÄËùÓÐÄÚÈÝ
Mainĸ°æ-->×Óĸ°æ
                  Content
                                      &nbs ......

(ת)ASP.NETʹÓÃOWC11×é¼þ»­Í¼

×î½üÐèҪʹÓÃOWC×é¼þ½øÐл­Öù״ͼµÈͳ¼ÆÍ¼£¬ÔÚÍøÉϲéÏÂÒÔÏÂÎÄÕ½ÏʵÓ㬹ÊתΪÊղأ¬¸Ðл×÷ÕßµÄÐÁÇÚÀͶ¯¡£ ÔÚʹÓÃOWC11֮ǰ£¬ÐèÒª°Ñ»·¾³×¼±¸ºÃ¡£±¾ÈËÒ»¿ªÊ¼µÄÍøÕ¾·ÅÔÚWindows Advance Server 2000 SP4£¬ºóÀ´Êܲ»ÁË2000°æ±¾½ÏµÍ£¬ºÜ¶àµÄ×é¼þºÍ¹¦ÄÜÓò»ÁË£¬¶ø.NET°æ±¾Ò²Ö»ÄÜ×°2.0µÄ£¬ÎÒʹÓõĿª·¢Æ½Ì¨ÊÇVS2008+SQL Server2000£¬Òò´Ë½ñÌìϾöÐİÑÍøÕ¾°áµ½Windows Server 2003ÉÏÈ¥¡£ÓÉÓÚ×°µÄÊǹ«Ë¾µÄÕý°æ2003£¬ÏµÍ³×Ô´øÁË.NET1.1£¬ÏëÒªÉý¼¶µ½3.5,ÔòÐèÒª°²×°SP2¡£ÓÖ»¨²»²»ÉÙʱ¼äÏÂÔØ°²×°SP2.ϵͳװÍêºó£¬×°SQLSERVER2000£¬È»ºó°ÑÊý¾Ý¿â±¸·Ý¹ýÀ´£¬°²×°Office2003¡£°²×°ÉèÖúÃIIS£¬ä¯ÀÀÍøÒ³£¬·¢ÏÖÌáʾ¡°XXXXȨÏÞ²»×㡱£¬GoogleÖÐÕÒµ½Á˴𰸣ºÍøÕ¾µÄÎļþ¼Ð·ÃÎÊȨÏÞ²»×ãµÄÎÊÌâ¡£½â¾ö·½·¨£ºÓÖ»÷ÍøÕ¾ËùÔÚµÄÎļþ¼Ð->ÊôÐÔ->°²È«->Óû§ÀïÔö¼ÓeveryoneÓû§½øÈ¥¡£OK ÓÖÅöµ½Ë®¾§±¨±í±àÒë²»¹ýµÄÎÊÌ⣬Googleºó·¢ÏÖÊÇ·þÎñÆ÷ÀïûÓа²×°Ë®¾§±¨±í£¬ÓÚÊǰÑVS×Ô´øµÄË®¾§±¨±í·ÅÔÚ·þÎñÆ÷Éϰ²×°ºóOK¡£VS×Ô´øµÄË®¾§±¨±íÒ»°ãÔÚĿ¼£ºC:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5   ÒÔÏÂÎª×ªÔØµÄÄÚÈÝ£º 1.½á¹¹
msdnÉÏÖ»ÕÒµ½office2000µÄ×ÊÁÏ£¬½ö¹ ......

ASP.net c# ÈÕÆÚת»¯[ת]

ÈÕÆÚת»¯Ò»
ΪÁË´ïµ½²»Í¬µÄÏÔʾЧ¹ûÓÐʱ£¬ÎÒÃÇÐèÒª¶Ôʱ¼ä½øÐÐת»¯£¬Ä¬ÈϸñʽΪ£º2007-01-03 14:33:34 £¬Òª×ª»¯ÎªÆäËû¸ñʽ£¬ÒªÓõ½DateTime.ToStringµÄ·½·¨(String, IFormatProvider)£¬ÈçÏÂËùʾ£º
using System;
using System.Globalization;
String format="D";
DateTime date=DataTime,Now;
Response.Write(date.ToString(format, DateTimeFormatInfo.InvariantInfo));
½á¹ûÊä³ö
Thursday, June 16, 2005
²ÎÊýformat¸ñʽÏêϸÓ÷¨£º
¸ñʽ×Ö·û ¹ØÁªÊôÐÔ/˵Ã÷
d ShortDatePattern
D LongDatePattern
f ÍêÕûÈÕÆÚºÍʱ¼ä£¨³¤ÈÕÆÚºÍ¶Ìʱ¼ä£©
F FullDateTimePattern£¨³¤ÈÕÆÚºÍ³¤Ê±¼ä£©
g ³£¹æ£¨¶ÌÈÕÆÚºÍ¶Ìʱ¼ä£©
G ³£¹æ£¨¶ÌÈÕÆÚºÍ³¤Ê±¼ä£©
m¡¢M MonthDayPattern
r¡¢R RFC1123Pattern
s ʹÓõ±µØÊ±¼äµÄ SortableDateTimePattern£¨»ùÓÚ ISO 8601£©
t ShortTimePattern
T LongTimePattern
u UniversalSortableDateTimePattern ÓÃÓÚÏÔʾͨÓÃʱ¼äµÄ¸ñʽ
U ʹÓÃͨÓÃʱ¼äµÄÍêÕûÈÕÆÚºÍʱ¼ä£¨³¤ÈÕÆÚºÍ³¤Ê±¼ä£©
y¡¢Y YearMonthPattern
ϱíÁгöÁ˿ɱ»ºÏ²¢ÒÔ¹¹Ôì×Ô¶¨ÒåģʽµÄģʽ¡£ÕâЩģʽÊÇÇø·Ö´óСдµÄ£»ÀýÈ磬ʶ±ð“MM”£¬µ«²»Ê¶±ð&ldquo ......

ASP.net c# ÈÕÆÚת»¯[ת]

ÈÕÆÚת»¯Ò»
ΪÁË´ïµ½²»Í¬µÄÏÔʾЧ¹ûÓÐʱ£¬ÎÒÃÇÐèÒª¶Ôʱ¼ä½øÐÐת»¯£¬Ä¬ÈϸñʽΪ£º2007-01-03 14:33:34 £¬Òª×ª»¯ÎªÆäËû¸ñʽ£¬ÒªÓõ½DateTime.ToStringµÄ·½·¨(String, IFormatProvider)£¬ÈçÏÂËùʾ£º
using System;
using System.Globalization;
String format="D";
DateTime date=DataTime,Now;
Response.Write(date.ToString(format, DateTimeFormatInfo.InvariantInfo));
½á¹ûÊä³ö
Thursday, June 16, 2005
²ÎÊýformat¸ñʽÏêϸÓ÷¨£º
¸ñʽ×Ö·û ¹ØÁªÊôÐÔ/˵Ã÷
d ShortDatePattern
D LongDatePattern
f ÍêÕûÈÕÆÚºÍʱ¼ä£¨³¤ÈÕÆÚºÍ¶Ìʱ¼ä£©
F FullDateTimePattern£¨³¤ÈÕÆÚºÍ³¤Ê±¼ä£©
g ³£¹æ£¨¶ÌÈÕÆÚºÍ¶Ìʱ¼ä£©
G ³£¹æ£¨¶ÌÈÕÆÚºÍ³¤Ê±¼ä£©
m¡¢M MonthDayPattern
r¡¢R RFC1123Pattern
s ʹÓõ±µØÊ±¼äµÄ SortableDateTimePattern£¨»ùÓÚ ISO 8601£©
t ShortTimePattern
T LongTimePattern
u UniversalSortableDateTimePattern ÓÃÓÚÏÔʾͨÓÃʱ¼äµÄ¸ñʽ
U ʹÓÃͨÓÃʱ¼äµÄÍêÕûÈÕÆÚºÍʱ¼ä£¨³¤ÈÕÆÚºÍ³¤Ê±¼ä£©
y¡¢Y YearMonthPattern
ϱíÁгöÁ˿ɱ»ºÏ²¢ÒÔ¹¹Ôì×Ô¶¨ÒåģʽµÄģʽ¡£ÕâЩģʽÊÇÇø·Ö´óСдµÄ£»ÀýÈ磬ʶ±ð“MM”£¬µ«²»Ê¶±ð&ldquo ......

ASP.NETµ×²ãÓë¸÷¸ö×é¼þµÄ³õ²½ÈÏʶÓëÀí½â »ã×Ü(ת)

ASP.NETµ×²ãÓë¸÷¸ö×é¼þµÄ³õ²½ÈÏʶÓëÀí½â »ã×Ü
 ASP.NETÊÇÒ»¸ö·Ç³£Ç¿´óµÄ¹¹½¨WebÓ¦ÓÃµÄÆ½Ì¨£¬ËüÌṩÁ˼«´óµÄÁé»îÐÔºÍÄÜÁ¦ÒÔÖÂÓÚ¿ÉÒÔÓÃËüÀ´¹¹½¨ËùÓÐÀàÐ͵ÄWebÓ¦ÓÃ,×÷Ϊasp.Net³ÌÐòÔ±,Ó¦¸Ã¸üÉîÁ˽âÒ»ÏÂÆä¹¤×÷Ô­Àí. Õâ¶Îʱ¼äÔÚ¹úÍâ¹úÄÚµÄÍø½øÐвéÖ¤ÓëÀí½â½øÐÐ×ܽá,  ÊÕ¼¯ÕûÀíÇÒµ±³ÌÐò´úÂë³É³¤Â·ÉϵĻØÒä. Óв¿·ÖÊÇ¿´ÁËÓ¢ÎĵĴó¸ÅÒâ˼, дÏÂÀ´µÄ, ¿ÉÄÜ´æÔÚ²»ºÏÀí»ò´íÎóµÄµØ·½, Ö¸¸÷λ´óÅ£Ö¸Õý.
Ò» ASP.NETµ×²ãµÄ³õ²½ÈÏʶÓëÀí½â
¶þ HttpRuntimeµÄÈÏʶÓë¼ÓÉîÀí½â
Èý HttpApplicationµÄÈÏʶÓë¼ÓÉîÀí½â
ËÄ HttpModuleµÄÈÏʶÓëÉîÈëÀí½â
Îå HttpHandlerµÄÈÏʶÓë¼ÓÉîÀí½â
¹ý³ÌÖдúÂë»òºÍÍøÉϵÄÏàͬ,ÆäʵÎÒÔÚ²âÊÔʱҲÊÇÓò¿·ÖÍøÉϵĴúÂë½øÐÐ,½ÚÊ¡´ó²¿·Öʱ¼ä. Ö»ÒªÊǽøÐÐ"ÊÕ¼¯ÕûÀí".
ÎÄÖпÉÄÜ´æÔÚ´íÎó,´ó¼ÒÖ»Òª²Î¿¼Ê±ÐèÒª×Ðϸ²ÎÏê,±ðÂîÎÒÎóµ¼ÈËѽ..Èç¹ûÕæµÄÎóµ¼ÁËÄã, ¸Ð¾õÎÒ³ÌÐò·½ÃæÊÇÌØ¼¶²ËÄñµÄ, ¿ÉÒÔÏòÎÒÇë½Ìϳø×ö²ËµÄÎÊÌâ.ÆäʵºÃ¾ÃÒÔǰ¾ÍÏëд¼¸¸öÄÃÊÖС²ËµÄ×ö·¨³öÀ´ÁË.ÓéÀÖÒ»ÏÂÈËÉú.ÆäʵITÈËÔ±Ò²ÐèÒªÕâ·½ÃæµÄ֪ʶ.ÒòΪÎÒÃÇÕûÌì¶Ô×ŵçÄÔ,¶Ô×Ô¼ºµÄÁíÒ»°ëÕÕ¹ËÌØÉÙ.ÀýÈç:¹ä½Ö,³öÓÎ,¹ºÎïµÈµÈ..ËùÒÔÒ»°ã¶¼ÊÇ×Ô¼ºÀ´´¦ÀíÉú»îÉϵÄÊÂÇéÀ´ÃÖ²¹Ò»ÏÂ.ÀýÈç:ÖÜδ,½ÚÈÕ×ö×ö´ó² ......

ASP.netÖÐTimerºÍWebServiceµÄʹÓÃ

 Ê¾ÀýÒ»
ÔÚGlobal.asax.csÎļþÖУº 
 protected void Application_Start(Object sender, EventArgs e)
      {
               System.Timers.Timer timer1 = new System.Timers.Timer();
                timer1.Interval = 50000; // 50000 ºÁÃë = 50Ãë
                timer1.Elapsed += new System.Timers.ElapsedEventHandler(timer1_Elapsed);
                timer1.AutoReset = true;
                timer1.Enabled = true;
                timer1.Start();
       }
void timer1_Elapsed(object source, Sy ......

Asp.net±ØÐëÕÆÎÕµÄһЩ¶«Î÷

1.ÃæÏò¶ÔÏóµÄ˼ÏëÖ÷Òª°üÀ¨Ê²Ã´£¿
¼Ì³Ð¶à̬·â×°
¡ñ·â×°£ºÓóéÏóµÄÊý¾ÝÀàÐͽ«Êý¾ÝºÍ»ùÓÚÊý¾ÝµÄ²Ù×÷·â×°ÔÚÒ»Æð£¬Êý¾Ý±»±£»¤ÔÚ³éÏóÊý¾ÝÀàÐÍÄÚ²¿¡£
¡ñ¼Ì³Ð£º×ÓÀàÓµÓи¸ÀàµÄËùÓÐÊý¾ÝºÍ²Ù×÷¡£
¡ñ¶à̬£ºÒ»¸ö³ÌÐòÖÐͬÃûµÄ²»Í¬·½·¨¹²´æµÄÇé¿ö¡£
ÓÐÁ½ÖÖÐÎʽµÄ¶à̬–ÖØÔØÓëÖØÐ´¡£
2.ʲôÊÇASP.netÖеÄÓû§¿Ø¼þ
Óû§¿Ø¼þ¾ÍÊÇ.ascxÀ©Õ¹ÃûµÄ¶«Î÷à¶,¿ÉÒÔÍϵ½²»Í¬µÄÒ³ÃæÖе÷ÓÃ,ÒÔ½ÚÊ¡´úÂë.±ÈÈçµÇ½¿ÉÄÜÔÚ¶à¸öÒ³ÃæÉÏÓÐ,¾Í¿ÉÒÔ×ö³ÉÓû§¿Ø¼þ,µ«ÊÇÓÐÒ»¸öÎÊÌâ¾ÍÊÇÓû§¿Ø¼þÍϵ½²»Í¬¼¶±ðµÄĿ¼ÏºóÀïÃæµÄͼƬµÈµÄÏà¶Ô·¾¶»á±äµÃ²»×¼È·,ÐèÒª×ÔÒÑд·½·¨µ÷Õû.
ÎÊÕâÑùµÄÎÊÌâ,Ò»°ãÊÇÃÔ»óÄã.ÒòΪÐÂÊÖ»¹ÊÇ·Ö²»Çå³þÓû§¿Ø¼þºÍ·þÎñÆ÷¿Ø¼þ(Ò²³Æ×Ô¶¨Òå¿Ø¼þ)..Óû§¿Ø¼þÒ»°ãÓÃÔÚÄÚÈݶàΪ¾²Ì¬,»òÕßÉÙÐí»á¸Ä±äµÄÇé¿öÏÂ..ÓõıȽϴó..ÀàËÆASPÖеÄinclude..µ«Êǹ¦ÄÜҪǿ´óµÄ¶à..
ÔÚC££ÖУ¬string str = null Óë string str = “”µÄÇø±ð¡£
´ð£ºstring str = null ÊDz»¸øËû·ÖÅäÄÚ´æ¿Õ¼ä,¶østring str = "" ¸øËü·ÖÅ䳤¶ÈΪ¿Õ×Ö·û´®µÄÄÚ´æ¿Õ¼ä
ÇëÏêÊöÔÚdotnetÖÐÀà(class)Óë½á¹¹(struct)µÄÒìͬ
Class¿ÉÒÔ±»ÊµÀý»¯,ÊôÓÚÒýÓÃÀàÐÍ,ÊÇ·ÖÅäÔÚÄÚ´æµÄ¶ÑÉϵÄ,StructÊôÓÚÖµÀàÐÍ,ÊÇ·ÖÅäÔÚÄÚ´æµÄÕ»ÉϵÄ.
Da ......
×ܼǼÊý:40319; ×ÜÒ³Êý:6720; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [6129] [6130] [6131] [6132] 6133 [6134] [6135] [6136] [6137] [6138]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ