易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET

示例
第一个示例演示如何创建 FileUpload 控件,该控件将文件保存到代码中指定的路径。
<%@ Page Language="C#" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script runat="server">
 
  protected void UploadButton_Click(object sender, EventArgs e)
  {
    // Specify the path on the server to
    // save the uploaded file to.
    String savePath = @"c:\temp\uploads\";
 
    // Before attempting to perform operations
    // on the file, verify that the FileUpload
    // control contains a file.
    if (FileUpload1.HasFile)
    {
      // Get the name of the file to upload.
      String fileName = FileUpload1.FileName;
 
      // Append the name of the file to upload to the path.
      savePath += fileName;
 
 
      // Call the SaveAs method to save the
      // uploaded file to the specified path.
      // This example does not perform all
      // the necessary error checking.              
      // If a file with the same name
      // already exists in the specified path, 
      // the uploaded file overwrites it.
      FileUpload1.SaveAs(savePath);
 
      // Notify the user of the name of the file
      // was saved under.
      UploadStatusLabel.Text = "Your file was saved as " + fileName;
    }
 


相关文档:

ASP.NET

 我的理解profile就是通过我们编写的配置文件 自动的再数据库中保存我们需要的数据。
这是一个简单的配置:
  <profile automaticSaveEnabled="true" defaultProvider="sqlprocider">
<providers>
<add name="sqlprocider" type="Syste ......

深入浅出ASP.Net 2.0 Ajax学习之旅随笔(三)

 概念:当位于UpdatePanel控件外部的某个控件的特定事件被触发时就引发异步回送并局部更新UpdatePanel控件的内容。
它的好处是:我们只需把需要更新的数据控件放在UpdatePanel控件里,而不需要更新的控件我们就把它放在UpdatePanel控件的外面,如此一来,才可以有效的降低往返于WEB服务器的数据量,并顺势降低WEB服务 ......

Asp.net 不允许循环文件引用

这段时间一直在做一个的项目,先前build项目时,一直是正常的,没有任何问题。昨天,在将完成的部分文件签入服务器后,重新生成解决方案
时,build失败,总是提示不允许循环文件引用,和用户控件相关的一些错误--未知服务器标记。接着再生成解决方案,还是失败,但是多生几次之后,尽然
又生成成功了,问题很是怪异。由于 ......

ASP.NET中如何搭建三层架构

步骤: 
1、先在D盘建一个新文件夹
2、打开VS2008,新建一个网站,更改名字后存放在1中的文件夹中,此时要记得给该网站建一个新的文件夹,专门用来存放该网站所有的文件;
3、搭建数据访问层,点击文件——添加——新建项目——类库,更改名字之后,存放在1中的文件夹中,同样也为数 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号