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

asp.net(c#)Êý¾ÝÀàÐ͸ñʽת»»´óÈ«

1¡¢DateTime   Êý×ÖÐÍ 
       System.DateTime currentTime=new System.DateTime(); 
  1.1 È¡µ±Ç°ÄêÔÂÈÕʱ·ÖÃë 
       currentTime=System.DateTime.Now; 
  1.2 È¡µ±Ç°Äê 
       int Äê=currentTime.Year; 
  1.3 È¡µ±Ç°Ô 
       int ÔÂ=currentTime.Month; 
  1.4 È¡µ±Ç°ÈÕ 
       int ÈÕ=currentTime.Day; 
  1.5 È¡µ±Ç°Ê± 
       int ʱ=currentTime.Hour; 
  1.6 È¡µ±Ç°·Ö 
       int ·Ö=currentTime.Minute; 
  1.7 È¡µ±Ç°Ãë 
       int Ãë=currentTime.Second; 
  1.8 È¡µ±Ç°ºÁÃë 
    int ºÁÃë=currentTime.Millisecond; 
    £¨±äÁ¿¿ÉÓÃÖÐÎÄ£© 
2¡¢Int32.Parse(±äÁ¿)            Int32.Parse("³£Á¿") 
   ×Ö·ûÐÍת»» תΪ32λÊý×ÖÐÍ 
3¡¢  ±äÁ¿.ToString()      
   ×Ö·ûÐÍת»» תΪ×Ö·û´® 
   12345.ToString("n");        //Éú³É   12,345.00 
   12345.ToString("C");        //Éú³É £¤12,345.00 
   12345.ToString("e");        //Éú³É 1.234500e+004 
   12345.ToString("f4");        //Éú³É 12345.0000 
   12345.ToString("x");         //Éú³É 3039  (16½øÖÆ) 
   12345.ToString("p");         //Éú³É 1,234,500.00% 
4¡¢±äÁ¿.Length  Êý×ÖÐÍ 
   È¡×Ö´®³¤¶È£º 
      Èç£


Ïà¹ØÎĵµ£º

ASP.NETÏÂÔØ——word,txt,ͼƬ·½·¨

ASP.NETÏÂÔØ——word,txt,ͼƬ·½·¨
¡¡¡¡±¾ÎÄÖ÷Òª½éÉÜASP.NETÏÂÔØÖîÈçword,txt,ͼƬµÈµÄ·½·¨¡£
¡¡
¡¡  try
¡¡¡¡{
¡¡¡¡FullFileName = Server.MapPath(FileName); //FileName--ÒªÏÂÔØµÄÎļþÃû
¡¡¡¡FileInfo DownloadFile= new FileInfo(FullFileName);
¡¡¡¡if(Down ......

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ÖÐsql server 2000/2005 Á¬½Ó×Ö·û´®


http://zhanglei1286.blog.163.com/blog/static/1895797120091112113019600/
ÔÚºǫ́´úÂëÀ
SQL 2000:
static string StrConn = "server=.;uid=sa;pwd=sa;database=MyCUDS";
SQL2005:
con = new SqlConnection(@"Server=.\SQLExpress;Database=db_CMS;Persist Security Info=True;User ID=sa;Password=Masslong"); ......

ASP.netÁ¬½ÓExcel

Ê×ÏÈÌí¼ÓÃüÃû¿Õ¼ä
using System.Data.OleDb;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
strfile = Request.QueryString["filename"];//´ÓÆäËûÒ³Ãæ´«¹ýÀ´µÄÎļþ·¾¶
Excel(strfile);
}
}

private v ......

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ºÅ