asp.netÖÐʱ¼ä¸ñʽ»¯µÄ¼¸ÖÖ·½·¨
1¡¢Êý¾Ý¿Ø¼þ£¨ÈçDataGrid/DataListµÈ¿Ø¼þ£©¸ñʽ»¯ÈÕÆÚ·½·¨£º
e.Item.Cell[0].Text = Convert.ToDateTime(e.Item.Cell[0].Text).ToShortDateString();
//Ö¸¶¨ÁУ¨µÚ1ÁУ©¸ñʽ»¯ÈÕÆÚ
2¡¢ÓÃStringÀàת»»ÈÕÆÚÏÔʾ¸ñʽ£º
String.Format( "yyyy-MM-dd ",yourDateTime);
3¡¢ÓÃConvert·½·¨×ª»»ÈÕÆÚÏÔʾ¸ñʽ£º
Convert.ToDateTime("2005-8-23").ToString"yyMMdd",System.Globalization.DateTimeFormatInfo.InvariantInfo);
//Ö§³Ö·±ÌåÊý¾Ý¿â
4¡¢Ö±½ÓÓÃToString·½·¨×ª»»ÈÕÆÚÏÔʾ¸ñʽ£º
DateTime.Now.ToString("yyyyMMddhhmmss");
DateTime.Now.ToString("yyyy/MM/dd hh:mm:ss")
5¡¢Ö»ÏÔʾÄêÔ£º
DataBinder.Eval(Container.DataItem,"starttime","{0:yyyy-M}")
6¡¢ÏÔʾʱ¼äËùÓв¿·Ö£¬°üÀ¨£ºÄêÔÂÈÕʱ·ÖÃë
DataFormatString="{0:yyyy-MM-dd HH24:mm:ss}">
Ïà¹ØÎĵµ£º
c#£¨»òvb.net£©³ÌÐò¸Ä½ø
1¡¢Ê¹ÓÃÖµÀàÐ͵ÄToString·½·¨
¡¡¡¡ÔÚÁ¬½Ó×Ö·û´®Ê±£¬¾³£Ê¹ÓÃ"+"ºÅÖ±½Ó½«Êý×ÖÌí¼Óµ½×Ö·û´®ÖС£ÕâÖÖ·½·¨ËäÈ»¼òµ¥£¬Ò²¿ÉÒԵõ½ÕýÈ·½á¹û£¬µ«ÊÇÓÉÓÚÉæ¼°µ½²»Í¬µÄÊý¾ÝÀàÐÍ£¬Êý×ÖÐèҪͨ¹ý×°Ïä²Ù×÷ת»¯ÎªÒýÓÃÀàÐͲſÉÒÔÌí¼Óµ½×Ö·û´®ÖС£µ«ÊÇ×°Ïä²Ù×÷¶ÔÐÔÄÜÓ°Ïì½Ï´ó£¬ÒòΪÔÚ½øÐÐÕâÀà´¦Àíʱ£¬½«ÔÚÍйܶÑÖÐ ......
¹ØÓÚÒ³Ãæ´«ÖµµÄ·½·¨£¬Òý·¢Á˺ܶàÌÖÂÛ¡£¿´À´ÓкܶàÈ˹Ø×¢Õâ¸ö£¬ÎÒ¾ÍÎÒ¸öÈ˹۵ã×öÁËЩ×ܽᣬϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1. ʹÓÃQueryString±äÁ¿
QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝ ......
À´ÕÒÕâƪÎÄÕµÄ,Ó¦¸Ã¶¼ÖªµÀʲô½Ð¶þ¼¶ÓòÃû°É,·Ï»°¾Í²»ËµÁË.µ«ÊÇÌÖÂÛÇ°,ÏÈÒªÃ÷°×Ò»¸ö˼ÏëÎÊÌâ.
ºÜ¶àÅóÓÑÒ»Ö±¿¼ÂDz»Çå(ÎÒÇ°¼¸ÌìÒ²Ò»Ö±¸ã²»Ã÷°×)µÄÎÊÌâÊÇ,ÎÒ¼üÈëÒ»¸öµØÖ·ºó,ÔõôÕâ¸öurl¾Í±»ÖØдÁË?
µÚÒ»²½:ÔÚä¯ÀÀÆ÷¼üÈëÁËÒ»¸öµØÖ·,±ÈÈçhttp://love.kerry.com,µã»Ø³µºó,¶¼·¢ÉúÁËʲô?
ΪÁË°ÑÎÊÌâ¼òµ¥»¯,ÎÒÀ´ÕâÑù½âÊÍ:
µÚ¶þ² ......
·½·¨Ò»£º
string postData = string.Format("a=1&b=2"); //post´«µÝ²ÎÊý
Stream outstream = null;
Stream instream = null;
StreamReader sr = null;
&nb ......
ÒòΪ·þÎñÆ÷µÄÐÔÄÜÓÐÏÞ£¬·¢ÏÖ×Ô´ÓʹÓÃÁË Castle + Nhibernate Ö®ºó£¬·þÎñÆ÷ÔÚ¸üÐÂwebÕ¾µãÖ®ºóµÄÖØбàÒë¹ý³ÌÌرðÂþ³¤£¬ÓÐʱºò¶¼³¬¹ýÁË1·ÖÖÓ£¬¾¡¹Ü·¢²¼µÄweb³ÌÐòÒ²ÊDZàÒëºÃµÄ¡£ÏÂÃæÊÇwebʹÓõĶ¯Ì¬¿â:
Castle.Core.dll
Castle.DynamicProxy2.dll
Castle.Facilities.AutomaticTransactionManagement.dll
Castle.Facilities ......