开发者

Writing HTML to a user control

开发者 https://www.devze.com 2023-01-27 05:59 出处:网络
I\'m creating a web user control and want to get some ht开发者_如何转开发ml from a datasource and write it to the page. I initially though I should just use response.write, but the problem with that i

I'm creating a web user control and want to get some ht开发者_如何转开发ml from a datasource and write it to the page. I initially though I should just use response.write, but the problem with that is it writes the message above everything in the page the user control lives in - I guess because the uc is built before the page.

Does any one know of a better approach?


you can use Literal control to write HTML code

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号