11.9
2011-11-09 20:56
197 查看
今天通过一上午的学习,让我们又泛型类和泛型集合的认识,登入控件的工能,以及sql和html的联系等 。
比如:<connectionStrings>
<add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
</connectionStrings>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
和
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
string[] roles = Roles.GetAllRoles();
foreach (string str in roles)
{
this.ListBox1.Items.Add(str);
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Roles.CreateRole(this.TextBox1.Text);
this.ListBox1.Items.Add(this.TextBox1.Text);
}
等。
比如:<connectionStrings>
<add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
</connectionStrings>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
和
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
string[] roles = Roles.GetAllRoles();
foreach (string str in roles)
{
this.ListBox1.Items.Add(str);
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Roles.CreateRole(this.TextBox1.Text);
this.ListBox1.Items.Add(this.TextBox1.Text);
}
等。
相关文章推荐
- Daily scrum 11.9
- TeamWork#3,Week5,Scrum Meeting 11.9
- 11.9 桃李学习 之表格连接 冒泡排序 数组
- 11.6 MariaDB安装;11.7 Apache安装(上)11.8 Apache安装(中)11.9 Apache安装(下)
- 【NOIP2017提高A组冲刺11.9】总结
- 六级词汇天天记(11.9)
- Daily scrum 11.9
- Daily Scrum 11.9
- NOIP2016提高A组集训第11场11.9 总结
- Advanced Installer 11.9基于IIS打包札记(For MySQL)
- 11.9
- 基于AJAX的向日葵甘特图控件—最近更新(10.29-11.9)
- 11.9 Scrum repurt
- 上周热点回顾(11.3-11.9)
- 11.9考试总结
- 11.6 -11.9 MariaDB,Apache 安装
- 11.9练习
- 上周热点回顾(11.9-11.15)
- Daily Scrum 11.9
- java编程思想11.9-set