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

ASP.NET页面对象

   获取请求的页的 HttpRequest 对象。
一、HttpRequest 类
使 ASP.NET 能够读取客户端在 Web 请求期间发送的 HTTP 值。
      下面的代码示例使用 StreamWriter 类将若干 HttpRequest 类属性值的值写入文件。对于是字符串类型的属性,属性值被写入文件时将被编码为 HTML。表示集合的属性会被依次通过,而这些属性包含的各个键/值对都会被写入该文件。
<%@ Page Language="C#" %>
<%@ import Namespace="System.Threading" %>
<%@ import Namespace="System.IO" %>
<script runat="server">
 
    /* NOTE: To use this sample, create a c:\temp\CS folder,
    *  add the ASP.NET account (in IIS 5.x <machinename>\ASPNET,
    *  in IIS 6.x NETWORK SERVICE), and give it write permissions
    *  to the folder.*/
 
    private const string INFO_DIR = @"c:\temp\CS\RequestDetails";
    public static int requestCount;
 
    private void Page_Load(object sender, System.EventArgs e)
    {
 
        // Create a variable to use when iterating
        // through the UserLanguages property.
        int langCount;
 
        int requestNumber = Interlocked.Increment(ref requestCount);
 
        // Create the file to contain information about the request.
        string strFilePath = INFO_DIR + requestNumber.ToString() + @".txt";
 
 
        StreamWriter sw = File.CreateText(strFilePath);
 
        try
        {
            // Write request information to the file with HTML encoding.
&nbs


相关文档:

浅谈ASP.net安全编程

在Web编程过程中,存在着很多安全隐患。比如在以前的ASP版本中,Cookie为访问者和编程者都提供了方便,并没有提供加密的功能。打开IE浏览器,选择“工具”菜单里的“Internet选项”,然后在弹出的对话框里单击“设置”按钮,选择“查看文件”按钮,在弹出的窗口中,就会显示硬盘里 ......

ASP.NET读取word到页面

 JavaScript实现:
<mce:script type ="text/javascript" ><!--
function readWord()
{
var div1=document .getElementById ("div1");
var WordApp,WordDoc,Str;
WordApp =new ActiveXObject ("Word.application");
WordDoc =WordApp.Documents.Open("F:\\工作日志.doc");
......

asp.net 回执(postback)后定位问题

用asp.net 的回执(postback)是很爽,但若一个长长的页面,一回执后,跳到了页首,体验不爽。 但在asp.net的page页面里面有一个很爽的属性Page.MaintainScrollPositionOnPostBack 属性,设为true即可。 获取或设置一个值,该值指示回发后是否将用户返回到客户端浏览器中的同一位置。 <%@ Page Title="" Lang ......

在UpdatePanel上使用FileUpload上传文件 (asp.net C#)

 
首先我很遗憾的告诉大家,因为微软的偷懒,目前UpdatePanel还不支持文件上传。变相的解决办法就是UpdatePanel中设置PostBackTrigger:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:FileUpload ID="FileUpload1" runat="serv ......

ASP.NET中FCKeditor_2.6.3配置

FCKeditor介绍
  FCKeditor是一个功能强大支持所见即所得功能的文本编辑器,可以为用户提供微软office软件一样的在线文档编辑服务。它不需要安装任何形式的客户端,兼容绝大多数主流浏览器,支持ASP.Net、ASP、ColdFusion 、PHP、Java、Active-FoxPro、Lasso、Perl、ython 等编程环境。
  官方网站http://www.fckedit ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号