开发者

Razor with devExpress pageControl

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜