会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
侯伟东
如有恒,何须三更起,半夜眠;最怕莫,三天打鱼两天晒网,竹篮打水一场空。
博客园
首页
新随笔
联系
订阅
管理
2025年7月5日
使用控件插入数据,并且验证数据不重复,核心关键的部分
摘要: 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)
2025年6月23日
解决更新数据空值的问题,解决方案asp.net
摘要: <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="ID" DataSourceID="AccessDataSource1" DefaultMode="Edit" Heigh
阅读全文
posted @ 2025-06-23 09:11 侯伟东
阅读(1)
评论(0)
推荐(0)
2020年3月17日
字符串数组的简单应用,字符换行,c#,asp.net
摘要: 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)
2020年3月4日
快速输入数据控件方案 asp.net c#
摘要: protected void DetailsView1_ItemInserting(object sender, DetailsViewInsertEventArgs e) { string xm = ((TextBox)this.DetailsView1.FindControl("TextBox1
阅读全文
posted @ 2020-03-04 13:07 侯伟东
阅读(206)
评论(0)
推荐(0)
2020年2月17日
行绑定事件 asp.net c#
摘要: 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)
2020年2月16日
比较标准的读取数据语句asp.net c#
摘要: 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)
2020年2月9日
确认收到信息,asp.net c#
摘要: 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)
2020年2月8日
数据增删改通用 asp.net c#
摘要: 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)
2020年2月5日
读取一个具体的值asp.net c#
摘要: string kk = shuju().Rows[1]["c1"].ToString();
阅读全文
posted @ 2020-02-05 14:44 侯伟东
阅读(128)
评论(0)
推荐(0)
读取数据库比较标准语句asp.net c#
摘要: 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)
下一页
公告