开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜