How to get or set the content into div in ASP.NET MVC

Jan 4 2016 12:24 PM

Hi,

I've a view in that I've provided some options to the user through that options user can able to generate his own content this may be any thing (normal text or <h1> tag,<input> tag etc). All generated content i'm showing in a div (any container ex: nav or span) in (for his visibility purpose) in that view itself. At last user can submit that view to some action. Now in that action method  i need to collect that generated content in the form of string. 

conditions:
  • Without using AJAX Post back.
  • Div should not be strongly typed.
  • you can use any attributes to div. 
Please Suggest me how to do that?
 
Thanks in advance providing answer.

Answers (1)