开发者

Razor with devExpress pageControl

开发者 https://www.devze.com 2023-03-21 01:29 出处:网络
I\'m using devExpress 11.1 with MVC 3/razor and i\'m experiencing problems with putting html tags into the content of the tabs of the pageControl e.g. I would like to put <div id=\"someDiv\"><

I'm using devExpress 11.1 with MVC 3/razor and i'm experiencing problems with putting html tags into the content of the tabs of the pageControl e.g. I would like to put <div id="someDiv"></div> into the content.

Did开发者_开发百科 anyone encounter similar problems?


At present, you can follow recommendation from the "Using in Razor Views" topic and wait a little when the "Razor Demos" will be available.


ViewContext.Writer.Write() is used to write html tags inside contents. Just go through this example.

settings.SetContent(() =>
        {


            ViewContext.Writer.Write("<div class=accountHeader>");
            ViewContext.Writer.Write("<h2>");
            ViewContext.Writer.Write("Welcome to My Site");
            ViewContext.Writer.Write("</h2>");               
            ViewContext.Writer.Write("</p>");
            ViewContext.Writer.Write("</div>");

});
0

精彩评论

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