Posts

Showing posts with the label Development

IE9 rendering issues table offset at random columns

Today while developing an ASP.NET application using AJAX to display the Search Result, I encountered a weird issue. My aspx p age contain a Repeater control with ItemTemplate to display free flow data in HTML Table .  Issue What seems to happen though, is that one or two rows in the loaded table, will have its data offset at a random column.   You can find the details of issue in following articles: http://stackoverflow.com/questions/7267014/ie9-table-has-random-rows-which-are-offset-at-random-columns http://social.msdn.microsoft.com/Forums/en-AU/iewebdevelopment/thread/28d78780-c95c-4c35-9695-237ebb912d90 Resolution The problem was with extra white space between td nodes causing IE9 render a dynamically generated table incorrectly, in my case to misalign a cell within a table.  Same code rendered perfectly fine in IE6, IE7, IE8, FireFox 4, Chrome 10, but not IE9.  Try one of the following Adding to the head element [me...

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...