c# - manually updating database table values are not reflecting in webpage - aspnet mvc -


I have seen some strange problems like I have created a web page on which the information comes from the database table called "school" When I manually change some data in that table, Web page data is already the same, its getitin has not changed, I do not know how this is possible.

This is my Action Controller

Public Activity Result School Details (String ID, _ASI_School School Details) {schoolDetails = SchoolRepository.GetSchoolById (ID); See Return (School Details); }

This is my view

  = html.Encode (Model.SchoolName) = Html.Encode (Model.SchoolAddress) = Html.Encode (Model .school E-mail) GetSchoolById () for  

code.

Private Static ASIDataContext DB = New ASIDTentect (); Public Stable _ASI_School GetSchoolById (String School ID) {Return db._ASI_Schools.SingleOrDefault (x => x.SchoolId == School ID); }

Try putting it above the action related to your school

  [Output cache (duration = 0)]  

MVC does some good server side caching, as well as cleansing the cache on the browser.


Comments