Writing HTML to a user control
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
精彩评论