添加HTML到一个占位符控件上飞 [英] Adding html to a placeholder control on the fly

查看:79
本文介绍了添加HTML到一个占位符控件上飞的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个普通的标记,我在运行时弗罗马文件加载如下:

I am a generic markup which I load at runtime froma file as follows:

<div id="pagewidth" >
<div id="header" > Head </div>
        <div id="wrapper" class="clearfix" > 
        <div id="twocols" class="clearfix"> 
            <div id="column2" > Main Content Column </div>
            <div id="column3" > right Column </div>
        </div> 
        <div id="column1" > Left Column </div>


     页脚
    
    

Footer

我想这个添加到asp.net网页中的占位控制。我该怎么做呢?

I want to add this to a place holder control in asp.net web page. How do I do it?

推荐答案

HTML字符串添加到一个asp:Literal控件,然后添加文字控制占位符的控件集合

Add the html string to an asp:Literal control and then add the literal control to the placeholder's control collection.

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

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