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

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -