如何在模式弹出窗口中获取XML格式化文本 [英] How to get XML Formatted text in a modal popup
本文介绍了如何在模式弹出窗口中获取XML格式化文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Grid和一个列打开了一个模态。我想在该模态中显示XML,该模式存储为格式化字符串。我希望它看起来像一个合适的XML,它也必须折叠标签。这该怎么做 ?我正在使用Bootstrap 3,mvc5。
I have a Grid and a column in it open up a modal. I want to display XML in that modal which is stored as formatted string. I want it look like like a proper XML and it must collapse tags as well. How to do this ? I'm using Bootstrap 3, mvc5.
推荐答案
我希望这有助于将Xml内容渲染到视图上
@ Html.Raw(Html.Encode(XmlContentVariable))
I hope this will help render Xml content onto the View
@Html.Raw(Html.Encode(XmlContentVariable))
这篇关于如何在模式弹出窗口中获取XML格式化文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文