随笔分类 - Asp.Net
只有注册用户登录后才能阅读该文。
            
摘要:主要代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.IO;using Word = Microsoft.Office.Interop.Word;namespace WebWordToHtml{ public partial class WebForm1 : System.Web.UI.Page { protected vo...
        阅读全文
            
摘要:./当前目录/网站主目录../上层目录~/网站虚拟目录如果当前的网站目录为E:\wwwroot应用程序虚拟目录为E:\wwwroot\company浏览的页面路径为E:\wwwroot\company\news\show.asp在show.asp页面中使用Server.MapPath("./")返回路径为:E:\wwwroot\company\newsServer.MapPath("/")返回路径为:E:\wwwrootServer.MapPath("../")返回路径为:E:\wwwroot\companyServer.MapPat
        阅读全文
            
摘要:前台页面:<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> </div> <asp:Button ID="Button1" runat="server"
        阅读全文
            
摘要:代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using PPT = Microsoft.Office.Interop.PowerPoint;using System.IO;using System.Reflection; namespace WebPPT{ public partial class WebForm1 : System.Web.UI.Page ...
        阅读全文
            
摘要:代码: /// <summary> /// 上传文件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Button1_Click(object sender, EventArgs e) { if (this.FileUpload1.PostedFile.FileName == "") { Respons...
        阅读全文
            
 
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号