mvc topics
TRANSCRIPT
MVC
Paging
[email protected](Model, page => Url.Action("ActionName", new {page}), PagedListRenderOptions.Minimal)
Partial Views
● @Html.Partial("ViewName", Model_If_Any)
Child Action
● ChildActionOnlyo Tag on Controller’s Action
● @Html.Action("ActionName")o In View
Caching
● OutputCache(Duration="sec")● ChildAction Caching
Output Cache Settings
● VaryByParam()o "*" - To Cache every parametero "none" - Always cache the same contento "name" - To cache every name parameter
● Locationo Cache on client or server or client & server
Cache Profile
<caching>
<outputCacheProfiles>
<add name="Profile1" duration="10" />
</outputCacheProfiles>
</caching>
Localization
<globalization culture="auto" uiculture="auto" />
Resource Files
Resource Files
Custom Error MessageErrorMessageResourceType=typeof(ClassName), ResourceName="Message"