Csharp:asp.net CheckBoxList databind
2023-09-11 14:19:12 时间
/style
geovindu 读者是,读之者,者之读.一沙一世界! to be is to do举世皆清我独浊,众人皆醒我独醉.俺是农民工,程序员.
asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatDirection="Horizontal" AppendDataBoundItems="True" DataTextField="B_Name" DataValueField="B_EnglishName" RepeatColumns="6" CellPadding="5" CellSpacing="5" RepeatLayout="Table" Border Css /asp:CheckBoxList br / asp:Button ID="Button1" runat="server" Text="確定" / /div
/// summary /// CheckBoxList數據源 /// 塗聚文 /// 20130705 /// /// /summary private void setCheckBoxList() DataTable dt = new DataTable(); CheckBoxList1.Items.Clear(); dt = geovindu_branchBLL.SelectGeovindu_branchNameDt(); CheckBoxList1.DataSource = dt; this.CheckBoxList1.DataTextField = "B_Name"; this.CheckBoxList1.DataValueField = "B_EnglishName"; CheckBoxList1.DataBind(); /// summary /// /// /summary /// param name="sender" /param /// param name="e" /param protected void Page_Load(object sender, EventArgs e) if (!IsPostBack) setCheckBoxList();
//傳值給父頁面 this.Page.Controls.Add(new LiteralControl(string.Format(" script opener.document.form1.txtShoppingDealsBranch.value={0} /script ", variable))); //關閉此視窗 this.Page.Controls.Add(new LiteralControl(" script window.close(); /script
geovindu 读者是,读之者,者之读.一沙一世界! to be is to do举世皆清我独浊,众人皆醒我独醉.俺是农民工,程序员.
相关文章
- 当前标识(IIS APPPOOL如来官网)没有对“C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files”的写访问权限。
- ASP.NET HTTP404错误怎么办
- 简洁版 .NET基础面试题
- ASP.NET通过更改Url进行页面传值
- Asp.Net Web API 2第三课——.NET客户端调用Web API
- ASP.NET MVC - The view must derive from WebViewPage, or WebViewPage<TModel>
- SQLServer · 最佳实践 · 开发基于.NET CORE的LINUX版本的数据库应用
- 重新整理 .net core 实践篇————缓存相关[四十二]
- ASP.NET Core 在 IIS 下的两种部署模式
- 《ASP.NET Core 3框架揭秘》博文汇总
- [ASP.NET Core 3框架揭秘] 依赖注入[3]:依赖注入模式
- Dora.Interception,为.NET Core度身打造的AOP框架:全新的版本
- ASP.NET Core的路由[5]:内联路由约束的检验
- 通过3个Hello World应用来了解ASP.NET 5应用是如何运行的(3)
- 【原创】开源.NET排列组合组件KwCombinatorics使用(二)——排列生成
- VB.net:VB.net编程语言学习之基于VS软件利用VB.net语言实现对SolidWorks进行二次开发的简介、案例应用之详细攻略
- ASP.NET Web Forms - Validation 服务器控件
- ASP.NET Web Forms - 服务器控件
- Castle.Net 基本应用
- Asp.Net转换Html加号显示为空格的字符!(自已备用)
- 用ASP.NET Core MVC 和 EF Core 构建Web应用 (一)
- ASP.NET MVC中HttpContext, HttpContextBase, HttpContextWrapper联系
- Asp.Net Core 程序部署到Linux(centos)生产环境(二):docker部署
- ASP.NET Core 配置 MVC - ASP.NET Core 基础教程 - 简单教程,简单编程
- 深入探究ASP.NET Core读取Request.Body的正确方式
- 精品:企业级智能 PDF 和文档处理 SDK:GdPicture.NET
- net core HTTP Error 500.31 - Failed to load ASP.NET Core runtime HTTP Error 500.30
- ASP.NET_阻止图片盗链
- 关于ASP.net开启身份验证时集成的托管管道模式下不适用的 ASP.NET 设置