Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
20912 Points
3279 Posts
May 31, 2012 07:42 AM|LINK
tinhphong007 I know in Razor View, we can write function, but like in Controller, I want:
You cannot write this in the controller. However you can use a StringBuilder object to build your Html:
StringBuilder sb=new StringBuilder();
sb.Append("<div........");
........
At end you do
sb.ToString()
to get the complete string.
francesco ab...
All-Star
20912 Points
3279 Posts
Re: Recursive! Help!
May 31, 2012 07:42 AM|LINK
You cannot write this in the controller. However you can use a StringBuilder object to build your Html:
StringBuilder sb=new StringBuilder();
sb.Append("<div........");
........
At end you do
sb.ToString()
to get the complete string.
Mvc Controls Toolkit | Data Moving Plug-in Videos