0
votes

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?

2
please clarify issue you encountered and PageControl's definition - Mikhail
Thanks Mikhail, but i figured out the issue. I didn't knew that I had to write even the HTML tags in quoatation marks. I thought that was only for text. - kalbsschnitzel

2 Answers

0
votes

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

0
votes

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>");

});