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

Asp.NetϵÄÎļþÉÏ´«¹¦ÄÜʵÏÖ

¸Õѧϰ.NetûÓж೤ʱ¼ä£¬ÒÔǰ¶¼ÊÇ¿´±ðÈ˵ÄÎÄÕ£¬Ñ§Ï°Ç°±²Ãǵľ­ÑéºÍ¼¼ÇÉ£¬×Ô¼ºÊÜÒæ·Ëdz¡£½ñÌìÒ²À´¸öÔ­´´µÄ£¬·¢¸öÎļþÉÏ´«µÄ´úÂë¡£Ö÷ҪʵÏֵŦÄÜÓУº1.¿ÉÒÔ¿ØÖÆÔÊÐíÉÏ´«µÄÎļþÀàÐÍ£»2.ÉÏ´«Ö®ºó×Ô¶¯ÒÔʱ¼äÃüÃû£»3.×Ô¶¯´´½¨ÉÏ´«ÎļþÒª±£´æµÄĿ¼¡£
²»×ãÖ®´¦£ºÃ»ÓжÔÔÊÐíÉÏ´«µÄÎļþ´óС×öÏÞÖÆ¡£ÆäËû²»×ãÖ®´¦»¹Íû¸÷λָ³ö£¬ÒÔ±ã¸Ä½ø¡£µÚÒ»´Î·¢ÎÄÕ£¬ÏÊ»¨¡¢×©Í·×Ô¼º×¼±¸£¡ºÇºÇ~~~
ÒªÒýÈëÃüÃû¿Õ¼ä System.IO;
#region ÉÏ´«Îļþ
    protected void btn_upload_Click(object sender, EventArgs e)
    {
        bool fileOK = false;
        //ÎļþµÄÉÏ´«Â·¾¶
        string path = Server.MapPath("~/UpLoadFiles/Files/");
        //ÅжÏÉÏ´«Îļþ¼ÐÊÇ·ñ´æÔÚ£¬Èô²»´æÔÚ£¬Ôò´´½¨
        if (!Directory.Exists(path))
        {
            //´´½¨Îļþ¼Ð
            Directory.CreateDirectory(path);
        }
        if (upload.HasFile)
        {
            //Èç¹ûÑ¡ÔñÁËÎļþÔòÖ´ÐÐ
            //»ñÈ¡ÉÏ´«ÎļþµÄÀàÐÍ
            string fileExtesion = System.IO.Path.GetExtension(upload.FileName).ToLower();
            //ÔÊÐíÉÏ´«µÄÀàÐÍ
            string[] allowExtesions = { ".doc", ".xls", ".rar", ".zip", ".ppt" };
            for (int i = 0; i < allowExtesions.Length; i++)
           


Ïà¹ØÎĵµ£º

asp.net »ñÈ¡±¾ÖÜ¡¢±¾ÔµÚÒ»ÌìºÍ×îºóÒ»Ìì

 DateTime dt = DateTime.Now;
 //±¾ÔµÚÒ»Ììʱ¼ä   
DateTime dt_First = dt.AddDays(-(dt.Day) + 1);
 Label1.Text = dt_First.ToString("yyyy-MM-dd");
//½«±¾ÔÂÔÂÊý+1 
DateTime dt2 = dt.AddMonths(1);
//±¾ÔÂ×îºóÒ»Ììʱ¼ä  
DateTime dt_Last = dt2.AddDays( ......

ASP.net ÀàºÍÊôÐÔµÄÎÊÌâ

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Sy ......

asp.netÐÔÄÜÓÅ»¯µÄ¼¸¸ö·½Ãæ

c#£¨»òvb.net£©³ÌÐò¸Ä½ø
1¡¢Ê¹ÓÃÖµÀàÐ͵ÄToString·½·¨
¡¡¡¡ÔÚÁ¬½Ó×Ö·û´®Ê±£¬¾­³£Ê¹ÓÃ"+"ºÅÖ±½Ó½«Êý×ÖÌí¼Óµ½×Ö·û´®ÖС£ÕâÖÖ·½·¨ËäÈ»¼òµ¥£¬Ò²¿ÉÒԵõ½ÕýÈ·½á¹û£¬µ«ÊÇÓÉÓÚÉæ¼°µ½²»Í¬µÄÊý¾ÝÀàÐÍ£¬Êý×ÖÐèҪͨ¹ý×°Ïä²Ù×÷ת»¯ÎªÒýÓÃÀàÐͲſÉÒÔÌí¼Óµ½×Ö·û´®ÖС£µ«ÊÇ×°Ïä²Ù×÷¶ÔÐÔÄÜÓ°Ïì½Ï´ó£¬ÒòΪÔÚ½øÐÐÕâÀà´¦Àíʱ£¬½«ÔÚÍйܶÑÖÐ ......

Ïê½âASP.NET»º´æµÄ¹¤×÷Ô­Àí

ÕâÀïÎÒÃǽ«½éÉÜASP.NET»º´æµÄ¹¤×÷Ô­Àí£¬°üÀ¨¼òµ¥µÄ¶¨Ò壬Êý¾Ý»º´æÒÔ¼°»º´æµÄÉèÖõȵÈÄÚÈÝ¡£Ï£Íû±¾ÎÄÄܶԴó¼Ò½ñºóµÄ¹¤×÷ÓÐËù°ïÖú¡£
ÈçºÎ±ÜÃâASP.NET»º´æÕ¼ÓÃϵͳ×ÊÔ´
ÔÙ̸ASP.NET»º´æ»úÖÆ£º¿ª·¢Ð§ÂÊÓëÓÅ»¯µÄ..
ASP.NET»º´æ»úÖÆ»ù´¡¸ÅÄî
ASP.NET»º´æÊý¾ÝÌí¼Ó·½·¨Ò»ÀÀ
ASP.NET»º´æÊý¾Ý¼¼ÇÉÈýÔò
½éÉÜ
»º´æÊÇÔÚÄÚ´æ´ ......

½«jQueryÓ¦ÓÃÓÚAsp.net Ajaxʱ£¬Ó¦±ÜÃâµÄ3¸ö´íÎó

3 mistakes to avoid when using jQuery with ASP.NET AJAX
AJAX, ASP.NET, JavaScript, jQuery By Dave Ward on June 5th, 2008
Over the past few weeks, I think I have definitely embodied Jeff Atwood’s claim that we’re all amateurs, learning together. Despite my best efforts to thoroughly tes ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ