Skip to main content

Posts

Showing posts from July, 2012

Client Side State Management Techniques in Asp.net

Generally, Web applications are based on stateless HTTP protocol, which doesn't hold any information about the user requests. HTTP is stateless protocol means Server takes every request as a new request.Stateless Protocol behaviour is Go, Get and Forget Go --> Establish the connection to the server Get --> Get the response from the server Forget --> Close the connection to the server. Http Stateless feature is an advantage for the Server. Because it will reduce the burden on webserver.If connection established to server always, many users are used the server around the world so diffenetely more burden on server. So our aim is that we must use HTTP protocol and Server should remember user's info.This feature is came with the concept of "State Management". Definition of StateManagement and StateManagement Types: State Management: This is a concept of Web Server, which remembers the user's information. OR It hold...

Change browser url without reloading page in asp.net

<script type="text/javascript">         window.history.replaceState('Object', 'Title', '/temp/Sachin');         //window.history.pushState({ id: 35 }, 'Viewing item #35', '/temp/mvc3.html');         window.onpopstate = function (e) {             var id = e.state.id;             load_item(id);         };     </script>