易截截图软件、单文件、免安装、纯绿色、仅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 常用输出JS

 using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
/// <summary>
/// 一些常用的Js调用
/// 添加新版说明:由于旧版普遍采用Response.Write(string msg)的方式输出js脚本,这种
/// 方式输出的js脚本会在html元素的&lt;html&gt;&a ......

ASP.NET 成员资格类和说明


Membership
提供常规成员资格功能。
创建一个新用户。
删除一个用户。
用新信息来更新用户。
返回用户列表。
通过名称或电子邮件来查找用户。
验证(身份验证)用户。
获取联机用户的人数。
通过用户名或电子邮件地址来搜索用户。
MembershipUser
提供有关特定用户的信息。
获取密码和密码问题。
更改密码 ......

ASP.NET程序的负压测试


wuyq11
(人生如梦)
进行压力测试,可使用的工具很多
如Loadrunner:预测系统行为和性能的负载测试工具
Webload:WEB性能压力测试
使用多线程
MS Web Application Stress Tool
延伸------------------------------------------------------------------------------->
《ASP.NET程序的负压测试》
......

asp.net form标签嵌套 提交页面的解决方法


原帖地址:http://blog.cnria.com/post/aspnet-form-e5b58ce5a597-e68f90e4baa4e9a1b5e99da2e79a84e8a7a3e586b3e696b9e6b395-from-e5b58ce5a597-aspnet-e8a1a8e58d95.aspx
这个问题的原因其实并不是asp.net 运行机制的原因,而是因为在html中本身就不允许form标签嵌套使用,我试过document.getelementbyid("search&q ......

ASP.NET跨服务器访问FileSystem

 现在模拟在A服务器上访问B服务器D盘下的一个文件 test.txt
1 在A服务器 web.config 的<system.web>下加入<identity impersonate="true" userName="duzhe123.com" password="boosou.com"/>
2 两台服务器上都建立一个帐号 duzhe123.com,密码为 boosou.com 。呵呵,帐号和 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号