如何在按钮点击事件中将动态html与数据表字段绑定? [英] how to bind dynamic html with datatable fields on button click event?
本文介绍了如何在按钮点击事件中将动态html与数据表字段绑定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
按钮单击我想从cs文件后面的代码绑定数据html。
on button click i want to bind data with html from code behind cs file.
推荐答案
您可以在页面中添加标签,然后设置Text属性你正在生成的HTML。
然而,看起来你正在尝试做很多内置于.Net的工作,所以也许.Net不是正确的语言或者你需要学习如何使用.Net控件。
You can add a label to your page and then set the Text property to the html you are generating.
However, it appears like you are trying to do a lot of work that comes built in to .Net so perhaps .Net is not the right language or perhaps you need to learn how to use .Net controls.
参考
数据绑定从 - 数据集到HTML表式-net / [ ^ ]
在不使用asp.net数据绑定控件的情况下将数据绑定到HTML表中 [ ^ ]
>
这篇关于如何在按钮点击事件中将动态html与数据表字段绑定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文