开发者

How to change the Html file referred inside a div on server side using C#?

开发者 https://www.devze.com 2023-03-23 09:33 出处:网络
I have div inside which contactUsFAQ.html is i开发者_运维问答ncluded. <div id=\"divContactUsFAQ\" runat=\"server\" >

I have div inside which contactUsFAQ.html is i开发者_运维问答ncluded.

    <div id="divContactUsFAQ" runat="server" > 
    <!--#include virtual="../HTML/ContactUsFAQ.html" -->
    </div>

I need to include ContactIRP.html file and remove ContactUsFAQ.html on server side.


you can access the div as divContactUsFAQ from CodeBehind and it has .InnerHTML property containing <!--#include virtual="../HTML/ContactUsFAQ.html" --> - you can just assign what you need to .InnerHTML.

0

精彩评论

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