asp.net mvc - How to display the text in MVC? -


i want display error message in textbox in mvc. used following code not displaying.

userprogram.compileoutput  = "line number " + comperr.line +                             ", error number: " + comperr.errornumber +                             ", '" + comperr.errortext + ";" +                             environment.newline + environment.newline;  @html.editorfor(up => up.compileoutput) return view(userprogram); 

in above code userprogram returns value compileoutput. not displaying in textbox.

just try it,

modelstate.clear(); 

Comments

Popular posts from this blog

google app engine - 403 Forbidden POST - Flask WTForms -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -

how to run a query SQL in node.js mysql -