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
相关文档:
wuyq11
(人生如梦)
进行压力测试,可使用的工具很多
如Loadrunner:预测系统行为和性能的负载测试工具
Webload:WEB性能压力测试
使用多线程
MS Web Application Stress Tool
延伸------------------------------------------------------------------------------->
《ASP.NET程序的负压测试》
......
1. 打开新的窗口并传送参数:
传送参数:
response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')</script>")
接收参数:
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.为按钮添加对话框
Button1.Attributes. ......
FCKeditor介绍
FCKeditor是一个功能强大支持所见即所得功能的文本编辑器,可以为用户提供微软office软件一样的在线文档编辑服务。它不需要安装任何形式的客户端,兼容绝大多数主流浏览器,支持ASP.Net、ASP、ColdFusion 、PHP、Java、Active-FoxPro、Lasso、Perl、ython 等编程环境。
官方网站http://www.fckedit ......
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体" ......