关于在div占位符中添加div [英] About adding a div in place holder

查看:179
本文介绍了关于在div占位符中添加div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过在stringbuilder中添加它来动态创建div
如何在占位符中添加该div或stringbuilder?

I am creating div dynamically by adding it in stringbuilder
How can i add that div or stringbuilder in placeholder?

推荐答案



您可以将文字控件放在占位符中,然后将HTML代码分配给该文字控件

或者,您可以放置​​一个在服务器端运行的div标签,并为其设置内部html

希望对您有帮助
Hi,

you can put a literal control in the place holder, then assign your html code to that literal control

Or you can place a div tag that runs at server side and set inner html for it

Hope this helps


这篇关于关于在div占位符中添加div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆