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

asp.net¶ÁÈ¡EXcelµÄСÌÖÂÛ

ÔÚCSÎļþÖУ¬Ê×ÏÈÔÚ¶¥²¿ÒýÈë²Ù×÷ExcelÊý¾ÝµÄÃüÃû¿Õ¼ä
using System.Data.OleDb;
Õýʽ´úÂëÈçÏ£º
    private void Button_Click(object sender, System.EventArgs e)
    {
        string thefullname = this.uploadFile.PostedFile.FileName;//»ñÈ¡ÍêÕû·¾¶
        ClientScriptManager csm = Page.ClientScript;
        if (thefullname == "")
        {
            csm.RegisterStartupScript(GetType, "Error", "alert('ÇëÑ¡ÔñÒªÉÏ´«µÃExcelÎļþ');", true);
            return;
        }
        int fileLength = this.uploadFile.PostedFile.ContentLength;
        if (fileLength > 512000)
        {
            csm.RegisterStartupScript(GetType, "Error", "alert('ÎļþÒѳ¬¹ý500K£¬ÎÞ·¨ÉÏ´«£¡');", true);
            return;
        }
        FileInfo info = new FileInfo(thefullname);
        string fileExt = info.Extension;
        if (fileExt.ToLower() != ".xls")
        {
            csm.RegisterStartupScript(GetType, "Error", "alert('²»ÊÇExcelÎļþ£¬ÇëʹÓÃÕýÈ·µÄÎļþ¸ñʽ£¡');", true);
            return;
        }
        string uploadPath = Page.MapPath(@"uploadfile\report.xls");
    


Ïà¹ØÎĵµ£º

ASP.NET ½«Í¼ÏñÓÃÓÚ TreeView ¿Ø¼þ


      TreeView ¿Ø¼þ¾ßÓÐÐí¶à²»Í¬µÄÍâ¹Û£¬´Ó¶ø¿ÉÒÔÌṩÁé»îµÄͼÏñ×Ô¶¨ÒåÒÔ¼°Ö¸¶¨×Ô¶¨ÒåÓû§½çÃæ (UI) Ñ¡ÏîµÄÊôÐÔ¡£Äú¿ÉÒÔ½«Í¼ÏñÓë TreeView ¿Ø¼þÒ»ÆðʹÓÃÀ´±íʾ½Úµã¡¢Á¬½ÓÏßÒÔ¼°Õ¹¿ªºÍÕÛµþͼ±ê¡£»¹¿ÉÒÔʹÓà ImageSet ÊôÐÔÖÐÒ»×éÔ¤¶¨ÒåµÄͼÏñ£¬»òÕßͨ¹ýÉèÖø÷¸öͼÏñÊôÐÔÀ´Ê¹ÓÃ×Ô¶¨ÒåͼÏñ¡£
&nbs ......

asp.netС֪ʶ


ºǫ́¸ø¿Ø¼þÌí¼Ójs·½·¨
this.btnOK.Attributes["onclick"] = "javascript:return confirm(\"È·¶¨±£´æ£¿\");";
»òÕß
<mce:script type="text/javascript"><!--
function shijian()
{
return confirm(\"È·¶¨±£´æ£¿\");
}
// --></mce:script>
this.btnOK.Attributes["onclick"] = "return sh ......

Asp.net: GridView72¾ø¼¼

 
 
 
 
 
GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò
GridViewÑ¡ÖУ¬±à¼­£¬È¡Ïû£¬É¾³ý
GridViewÕý·´Ë«ÏòÅÅÐò
GridViewºÍÏÂÀ­²Ëµ¥DropDownList½áºÏ
GridViewºÍCheckBox½áºÏ
Êó±êÒÆµ½GridViewijһÐÐʱ¸Ä±ä¸ÃÐеı³¾°É«·½·¨Ò»
Êó±êÒÆµ½GridViewijһÐÐʱ¸Ä±ä¸ÃÐеı³¾°É«·½·¨¶þ
GridViewʵÏÖɾ³ýʱµ¯³öÈ·ÈÏ ......

ASP.NET 2.0·¢Ë͵ç×ÓÓʼþÖдæÔÚµÄÎÊÌâ

  ³ö´¦£º Ì켫yesky ×÷ÕߣºÖìÏÈÖÒ±àÒë ʱ¼ä£º2006-11-15 11:26:00
ÔÚз¢ÐеÄASP.NET 2.0°æ±¾ÖУ¬Î¢Èí²»ÔÙ½¨ÒéʹÓÃSystem.Web.MailÃüÃû¿Õ¼ä¶ø´úÖ®ÒÔеÄSystem.Net.MailÃüÃû¿Õ¼ä¡£ÔÚÕâ¸öпâÖÐÒýÈëÁËÐí¶àÐÂÌØÕ÷£¬µ«ÊÇÔÚ·¢ËÍÓʼþµÄ·½Ê½·½ÃæÒ²ÏàÓ¦µØ´øÈëÁËһЩС´íÎó¡£
Ò»¡¢ ·¢ËÍÓʼþ
ÔÚÏêϸÌÖÂÛÕ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ