如何从详细信息视图插入记录

编程入门 行业动态 更新时间:2024-10-10 23:26:50
本文介绍了如何从详细信息视图插入记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨 我有一个详细信息视图,该视图从数据库中检索记录并自动生成插入,编辑按钮.... 我如何在cs页面上而不是aspx中使用C#编写这些自动生成按钮的代码?因此,我们知道您正在从事Web开发. 您编写了一个适当的数据层,以便没有SQL出现在aspx或cs中,并且将按插入或编辑按钮时显示的控件中的数据传递给它.然后,您重新绑定到数据源,以便新数据显示在控件中.

Hi I have a details view which retrieves records from the database and an auto generate insert,edit buttons.... How do i code these autogenerate buttons using C# on the cs page and not in the aspx

解决方案

If you''re using ASP.NET, you should tag your question accordingly so we know you''re doing web dev. You write a proper data layer, so that no SQL ever appears in your aspx or your cs, and you pass it the data taken from the controls that are shown when you push the insert or edit buttons. Then you rebind to your data source so the new data is shown in the control.

更多推荐

如何从详细信息视图插入记录

本文发布于:2023-11-08 06:18:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568575.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:详细信息   视图

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!