Posts

Showing posts from September, 2010

Browser 'Back Button' Issue in ASP.NET - Workaround

In development many times you come up scenario where the Back Button of browser becomes a nightmare. Recently, while developing one of Web Application in .NET i faced this issue. I have a user control containing multiple child user control one of them is used to create new record for a business process. After successfully creating record, it is possible that end user use back button which bring them back to the previous page for creating new record. And on submitting again this page will create a duplicate record (if there is no duplicate check done in code). To avoid this if you need to refresh the Create New page then add the following line in the page_load. Thus when user use Back Button to browse to previous page the Create New Page will get refreshed and will be blanked out. " Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1)); Response.Cache.SetNoStore(); Response.AppendHeader("pragma","no-cache&quo

शीतलामाता फॉल में आईआईएम का छात्र डूबा - IIM students drown in the fall of Shihlamato - www.bhaskar.com

शीतलामाता फॉल में छात्र डूबा - Students drown in the fall of Shihlamato - www.bhaskar.com This is really a sad news, but it is fault from our side. Ours means those people who are visiting Shitlamata Fall and trying to be play around against Nature's Law. When I was in college, i did visited this fall and to be very honest unless and until you do something very stupid, there is no risk at all. This fall is like heaven on earth and its beauty is remarkable. The deepest part of this fall is far away from the corners of the fall, there is no point going so deep and get drowned. People can sit and enjoy the beauty of fall from a distance too. This fall is really beautiful and is a treat to eyes, but parents are scared that their kids can get drowned over there because every year we hear news of students getting drowned in this fall. I request to all the people who are planning to visit Shitlamata fall to go and enjoy the beauty but dont try to be adventurous out there because Nature is