易截截图软件、单文件、免安装、纯绿色、仅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读取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");
......

Discuz!NT与asp.net整合集成实例教程

由于项目需要一个论坛,本来有CS的,在.net下很出名的国外开源论坛。但为了适应国内的风气,最后选用在国内如日中天的Discuz!NT。
将Discuz与asp.net开发的网站整合,有很多人已经完成了。
但在网上没有找到较详细的描述。方法倒是有很多种。
在项目中注册新用户时,也同时调用论坛的用户注册,这样就同步注册了。至于删 ......

ASP.NET程序的负压测试


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

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

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

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 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号