文件名称:ASP.Net通讯录
文件大小:1.39MB
文件格式:RAR
更新时间:2014-01-16 08:18:04
asp.net
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ShowAll(); } } protected void btnSearch_Click(object sender, EventArgs e) { string key = this.txtkey.Text.Trim();//定义变量获取文本框值 if (key != "") { SqlConnection con = new SqlConnection(); con.ConnectionString = "Data Source=.;Initial Catalog=AddressList;Integrated Security=true"; con.Open(); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = "select * from address_list where Name like '%" + key + "%'or Address like '%" + key + "%' or Email like '" + key + "' or Tel like '" + key + "'"; SqlDataReader dr = cmd.ExecuteReader(); this.GridView1.DataSource = dr; this.GridView1.DataBind(); dr.Close(); con.Close(); } else { ShowAll(); } } protected void btnAdd_Click(object sender, EventArgs e) { Response.Redirect("add.aspx"); }
【文件预览】:
通讯录
----通讯录静态页面()
--------img()
--------index.html(5KB)
--------个人通讯录分析.ppt(48KB)
--------css.css(1KB)
----Default.aspx(3KB)
----img()
--------bj.png(5KB)
--------4.jpg(11KB)
--------bj_1.png(4KB)
--------2.png(149KB)
----Del.aspx.cs(1KB)
----App_Data()
--------CommunicationList_log.ldf(1024KB)
--------CommunicationList.mdf(3MB)
----Del.aspx(434B)
----css.css(2KB)
----Edit.aspx.cs(3KB)
----Edit.aspx(2KB)
----web.config(9KB)
----Default.aspx.cs(10KB)