如何在ASP中生成HTML代码块。净c# programmaticaly吗?

时间:2020-12-25 18:19:44

This is my code :

这是我的代码:

Generate HTML From Code Behind

How I can generate HTML block with C# code and fill "Generate HTML From Code Behind" part

如何用c#代码生成HTML块并填充“从代码后面生成HTML”部分?

Thanks .

谢谢。

1 个解决方案

#1


0  

Using Javascript you can proceed..

使用Javascript可以继续。

In UI take Radiobuttonlist, In code behind write a method to get data from database, After that find the Radiobuttonlist from javascript and Bind the data.

在UI中使用Radiobuttonlist,在代码后面编写一种方法从数据库获取数据,然后从javascript找到Radiobuttonlist并绑定数据。

#1


0  

Using Javascript you can proceed..

使用Javascript可以继续。

In UI take Radiobuttonlist, In code behind write a method to get data from database, After that find the Radiobuttonlist from javascript and Bind the data.

在UI中使用Radiobuttonlist,在代码后面编写一种方法从数据库获取数据,然后从javascript找到Radiobuttonlist并绑定数据。