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

ASP.NET代码片段

设置下拉框的初始值:
  <asp:DropDownList ID="DropDownList1" runat="server">
        <asp:ListItem Text="小学" Value="1"></asp:ListItem>
        <asp:ListItem Text="中学" Value="2"></asp:ListItem>
        <asp:ListItem Text="大学" Value="3"></asp:ListItem>
        </asp:DropDownList>
 string init = "2";
            for (int i = 0; i < DropDownList1.Items.Count; i++)
            {
                if (DropDownList1.Items[i].Value.ToString() == init)
                {
                    DropDownList1.Items[i].Selected = true;
                }
            }
  
 DropDownList1.Items.Insert(0,new ListItem("选择类别",0));
<asp:GridView ID="GridView1" ShowFooter="false" BorderColor="Black" OnRowDataBound="GridView1_RowDataBound"  runat="server" AutoGenerateColumns="False"  Font-Size="12px" Width="549px"  AllowPaging="True" >
          <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" />
             <asp:BoundField DataField="EmpBirthday" HeaderText="生日" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
      &nbs


相关文档:

ASP.NET页面刷新方法总结(转)

 ASP.NET页面刷新方法总结
先看看ASP.NET页面刷新的实现方法:
第一:
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } 第二:
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script langua ......

asp.net ToString格式大全

 转载于:http://hi.baidu.com/juzi119/blog/item/d4bf9a4b7cea7df583025c9e.html
C   货币 2.5.ToString("C") ¥2.50
D   十进制数 25.ToString("D5") 00025
E 科学型 25000.ToString("E") 2.500000E+005
F 固定点 25.ToString("F2") 25.00
G 常规 2.5.ToString("G") 2.5
N 数字 2500000. ......

Asp.Net操作txt,读写取。并对txt文件进行条件查询

1)创建txt文件【web.config】
   --------------------------------------------------------------------
<appSettings>
    <add key="EditChars" value="D:\Site\ZJPS\TextFile\EditChars.txt"/>
</appSettings>
2) 页面的CS文件中:
   ----------------- ......

ASP.NET程序的负压测试


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

asp.net向文件写入日志

 using System;
using System.IO;
namespace WriteLog
{
    /// <summary>
    /// WriteInLog 的摘要说明。
    /// </summary>
    public class WriteInLog
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号