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
Post a Comment