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

ASP.NET Web Form的处理步骤

    在服务器端,处理一个ASP.NET Web Form需要几个步骤,在每个步骤都会引发各种事件,这就允许你把网页插入到任一步骤的处理流中并且响应任何你所期望的处理。
    以下是ASP.NET网页处理流中的几个主要步骤
    1.网页框架初始化
    2.用户代码初始化
    3.验证
    4.事件处理
    5.自动数据邦定
    6.清理


相关文档:

搜索引擎 asp.net 基本优化

设置组件
<configSections> 
    <section name="rewriter"  requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
</configSections>
设置模块
<httpModules>
 &n ......

asp.net取文件夹中所有文件名

string[] files = Directory.GetDirectories(Server.MapPath("Themes/"));
先声明了一个字符数组,mapPath方法得到的是一个绝对路径。
因为GetFiles返回的是一个string[]数组,所以用 files来接收它。
然后我们在用一个foreach循环来遍历这个数组,取出所有值。
foreach (string file in files)
{
Response.W ......

JS与Asp.Net的传值

1. JS中取得Asp.Net的值
(1)取得服务端控件的值
var s = document.getElementById("TextBox1").value;   //取得TextBox1的Text值
(2)取得全局变量的值
在Page_Load()方法前定义protected String sT;
在Page_Load()方法中赋值sT = "哈哈";
JS中这样写取得
var s = "<%=sT %>";
-------------------- ......

Cascading DropDownLists With ASP.NET and jQuery


Cascading drop down lists is a really nice feature for web developers. I thought it was time to write an article on how to do this using ASP.NET and jQuery. Well here’s one way of doing it. Before we get started, this example uses the latest version of jQuery which is 1.3.2.&n ......

asp.net里导出excel表或Word的方法

对于大量的数据,有时候导出到Excel中将更加方便进行数据统计分析,而对于排版打印则导出到World文档中更加方便。在ASP.NET可以通过少量代码实现这两种导出。
        新建一页面,该页面布局Html源码如下:
<form id="form1" runat="server"><div> ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号