您的位置:首页 > 其它

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);

}

等。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: