.NET
.net技术
yorkmass☭
个人邮箱 yaoyi@tobsion.com
展开
-
.net 文件下载功能的实现
下载功能,在点击事件里面添加如下代码,即可实现文件下载功能try { string strFilePath = Server.MapPath("~") + "/files/0.jpg";//服务器文件路径 FileInfo fileInfo = new FileInfo(strFilePath); Res...原创 2019-04-18 18:05:43 · 1897 阅读 · 0 评论 -
.net文件上传功能的实现
我们首先添加服务端控件 <asp:FileUpload ID="Upload" runat="server" CssClass="auto-style1" BorderStyle="Inset" Height="20px" Width="132px" /> <asp:Button ID="Button1" runat="server" OnClick="Bu...原创 2019-04-18 18:08:44 · 1894 阅读 · 0 评论 -
.net弹出框预览图片功能实现
我们使用DEV工具首先在该页面xxx.aspx页面里面注册DEV,写在页面最开始<%@ Register assembly="DevExpress.Web.v16.2, Version=16.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web" tagprefix="d...原创 2019-04-18 18:14:24 · 720 阅读 · 0 评论 -
.net执行exe文件
如何用C#执行可执行文件 Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; ...原创 2019-04-20 12:29:41 · 1197 阅读 · 0 评论