Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
May 31, 2012 07:42 AM|LINK
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();
At end you do
to get the complete string.