繍ASP.NET UpdatePanel陣周嚥方象鰯協陣周匯軟聞喘
作者 佚名技术
来源 NET编程
浏览
发布时间 2012-05-20
????????? _cart??=??New??ArrayList() ???????????? Else ???????????????? _cart??=??CType(ViewState("Cart"),??ArrayList) ???????????? End??If ???????? End??Sub ???????? Custom??Event??RowCommand??As??EventHandler ???????????? RaiseEvent(ByVal??sender??As??Object,??ByVal??e??As??EventArgs) ???????????? End??RaiseEvent ???????????? AddHandler(ByVal??value??As??EventHandler) ???????????????? Events.AddHandler(EventRowCommand,??value) ???????????? End??AddHandler ???????????? RemoveHandler(ByVal??value??As??EventHandler) ???????????????? Events.RemoveHandler(EventRowCommand,??value) ???????????? End??RemoveHandler ???????? End??Event ???????? Protected??Overridable??Sub??OnRowCommand(ByVal??e??As??EventArgs) ???????????? Dim??handler??As??EventHandler??=??CType(Events(EventRowCommand),?? EventHandler) ???????????? If??handler??IsNot??Nothing??Then ???????????????? handler(Me,??e) ???????????? End??If ???????? End??Sub ???????? Private??Sub??AddDataboundControls(ByVal??parent??As??Control) ???????????? Dim??ds??As??SqlDataSource??=??New??SqlDataSource() ???????????? ds.ID??=??"ProductsSqlDataSource" ???????????? ds.ConnectionString??=??_ ?????????????? ConfigurationManager.ConnectionStrings ("AdventureWorksConnectionString").ConnectionString ???????????? ds.SelectCommand??=??_ ?????????????? "SELECT??Production.ProductDescription.Description,??Production.Product.Name,?? Production.ProductPhoto.ThumbnailPhotoFileName,??"??&??_ ?????????????? "Production.Product.ProductID??"??&??_ ?????????????? "FROM??Production.Product??INNER??JOIN??"??&??_ ?????????????? "Production.ProductProductPhoto??ON??Production.Product.ProductID??=?? Production.ProductProductPhoto.ProductID??INNER??JOIN??"??&??_ ?????????????? "Production.ProductPhoto??ON??Production.ProductProductPhoto.ProductPhotoID??=?? Production.ProductPhoto.ProductPhotoID??INNER??JOIN??"??&??_ ?????????????? "Production.ProductModelProductDescriptionCulture??ON??"??&??_ ?????????????? "Production.Product.ProductModelID??=?? Production.ProductModelProductDescriptionCulture.ProductModelID??INNER??JOIN??"??&?? _ ?????????????? "Production.ProductDescription??ON??"??&??_ ?????????????? "Production.ProductModelProductDescriptionCulture.ProductDescriptionID??=?? Production.ProductDescription.ProductDescriptionID" ???????????? Dim??gv??As??GridView??=??New??GridView() ???????????? gv.ID??=??"ProductsGridView" ???????????? gv.DataSourceID??=??ds.ID ???????????? gv.AutoGenerateColumns??=??False ???????????? gv.DataKeyNames??=??New??String()??{"ProductID"}?? ???????????? gv.GridLines??=??GridLines.None ???????????? gv.HeaderStyle.BackColor??=??Color.LightGray ???????????? gv.AlternatingRowStyle.BackColor??=??Color.LightBlue ???????????? gv.AllowPaging??=??True ???????????? gv.PageSize??=??_pageSize ???????????? AddHandler??gv.RowCommand,??Addr |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: 自己写个IIS玩-协议解析篇下一篇: 三元运算符-条件(三元)运算符效率问题
关于繍ASP.NET UpdatePanel陣周嚥方象鰯協陣周匯軟聞喘的所有评论