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


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



i noticed some wierd problem i.e i have built a web page on which information comes from database table named "school", when i change some data in that table manually from mssql the web page data is still same as previous, its not gettin' changed, i dn't know how it is possible.

this is my action controller

      public ActionResult SchoolDetails(string id,_ASI_School schoolDetails)     {             schoolDetails = SchoolRepository.GetSchoolById(id);             return View(schoolDetails);      }  

This is my view

      =Html.Encode(Model.SchoolName)     = Html.Encode(Model.SchoolAddress)      = Html.Encode(Model.SchoolEmail)   

code for GetSchoolById()..

     private static ASIDataContext db = new ASIDataContext();    public static _ASI_School GetSchoolById(string schoolId)    {             return db._ASI_Schools.SingleOrDefault(x => x.SchoolId == schoolId);    }  



Using Structuremap to manage ObjectContext Lifetime in ASP.NET MVC

1:



UrlRewriting from ASP.NET WebApplication to ASP.NET MVC WebApplication
try putting this above your SchoolDetails ActionResult.
Localization with separate Language folders within Views
[OutputCache( Duration=0)] 
MVC does some really nice server side caching as well that clearing the cache on the browser does not fix..
How to create a reusable Asp.Net Mvc application?


Client Id for Property (ASP.Net MVC)


80 out of 100 based on 80 user ratings 230 reviews