摘要: webconfig部分 <appSettings> <add key="connstring" value="provider=microsoft.jet.oledb.4.0;data source=|datadirectory|bbb.mdb"/> </appSettings> protected 阅读全文
posted @ 2025-07-05 22:46 侯伟东 阅读(0) 评论(0) 推荐(0)
摘要: <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="ID" DataSourceID="AccessDataSource1" DefaultMode="Edit" Heigh 阅读全文
posted @ 2025-06-23 09:11 侯伟东 阅读(1) 评论(0) 推荐(0)
摘要: protected void Button1_Click(object sender, EventArgs e) { char[] ca; ca = txt_org.Text.ToCharArray(); for (int i = 0; i <ca.Length; i++) { txt_result 阅读全文
posted @ 2020-03-17 22:02 侯伟东 阅读(341) 评论(0) 推荐(0)
摘要: protected void DetailsView1_ItemInserting(object sender, DetailsViewInsertEventArgs e) { string xm = ((TextBox)this.DetailsView1.FindControl("TextBox1 阅读全文
posted @ 2020-03-04 13:07 侯伟东 阅读(206) 评论(0) 推荐(0)
摘要: OnRowDataBound="hwd" GridView中添加 protected void hwd(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { for (i 阅读全文
posted @ 2020-02-17 17:40 侯伟东 阅读(198) 评论(0) 推荐(0)
摘要: protected void Page_Load(object sender, EventArgs e) { string str_provider = "Provider=Microsoft.Jet.OLEDB.4.0;"; string str_source = "Data Source=" + 阅读全文
posted @ 2020-02-16 23:01 侯伟东 阅读(155) 评论(0) 推荐(0)
摘要: public partial class _Default : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { } /// <summary> /// 更新确认数据 /// </summary> p 阅读全文
posted @ 2020-02-09 00:11 侯伟东 阅读(176) 评论(0) 推荐(0)
摘要: protected void Button1_Click(object sender, EventArgs e) { int res; string c1 = this.TextBox1.Text.ToString(); string dw = this.DropDownList1.Selected 阅读全文
posted @ 2020-02-08 22:47 侯伟东 阅读(167) 评论(0) 推荐(0)
摘要: string kk = shuju().Rows[1]["c1"].ToString(); 阅读全文
posted @ 2020-02-05 14:44 侯伟东 阅读(128) 评论(0) 推荐(0)
摘要: private static DataTable shuju() { OleDbConnection conn = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=|datadirectory|data.mdb;") 阅读全文
posted @ 2020-02-05 14:41 侯伟东 阅读(148) 评论(0) 推荐(0)