Welcome to ASP.NET Guild

Be sure to come back often and tell others. If you have any tips, tricks, examples, please email them to me at chris.williams@techguilds.com and I will post them. Check out our ASP.NET QuickStart and C# QuckStart Libraries. Below is my latest articles.

Monday, August 13, 2012

.NET Postback loads Internet Explorer 7 Stylesheet on Postback in Chrome or FireFox

When using the Telerik AJAX Panel, on postback you may find that the updated controls will use the wrong stylesheet. Here is an article detailing the issue:

.NET Postback makes other browsers load ie conditional comments

The article mentions no workaround, however, since you are working in a .NET environment you do have the option of server side browser detection and then push the proper CSS for the browser. This would bypass the bug in the conditional comments.

Another option which is recommended in the link above is using HeadJS which will detect browser and apply the correct styles.

If you have any tips, tricks or resources you would like to share with the Guild, please email them to Chris Williams at chrisw_88@hotmail.com and we will post them here.

Are you a .NET Developer or Contractor interested in working with Sitecore or Dynamics CRM?

Apply for our Mentorship Program. If accepted, we will mentor you on Sitecore and provide you with project to help you build your skills and make some money at the same time. If you are interested send your resume with details on why you want to work with Sitecore or Dynamics CRM to: Chris Williams - chris.williams@techguilds.com or Dennis Augustine - dennis.augustine@techguilds.com We look forward to working with you to achieve your goals.