Posts

IE10 breaking changes compatibility

Microsoft feeds us. New versions they introduce gives business to developers like us :-P. IE10 release preview got released. Along with other changes to conform the browser's behavior with html standards, there were two changes which broke one old and one new applications of ours. First one: support for .htc files (very old html control files) got removed.Although we had started porting our htc into asp.net user controls, there is still a huge part still in htc. Second one: support for conditional html statements got removed. http://www.sitepoint.com/microsoft-drop-ie10-conditional-comments/ To add to this, for some reason we are still analyzing, telerik controls got some issue with working with IE10. The only option remaining was to force IE10 into emulate IE9 mode. (Although IE10 users can explicitly use the compatibiliy mode, users generally are not aware of this and raise an issue with the support team.) However, to add to our problems, IE10 wont allow htc to run...

Microsoft and internet explorer strategies

Recently, after Microsoft released IE10 release review, I started re-thinking about Microsoft's strategy which might end Internet Explorer. I feel microsoft is indirectly allowing it's competitiors an edge by not providing it's latest browsers for their old operating systems. 'Allow' is not the right word... rather MS seems to be forcing users to migrate to it's competitor's browsers. I am still using Windows Server 2003 or Vista (although I might be at fault by using an OS not officially in support by Microsoft). Now if MS does not provide latest IE for WS03, am I going to buy Win8 just for this? I will obviously switch to Chrome or Firefox or Opera. Later... I will get so much used to these browsers and their innovative plugins to such an extent that whenever I will move to Win8, the first thing I will do is to get these browsers on Win8 instead of using IE10 (I am now addict to Chrome). Microsoft needs to revise it's strategy and stop hitting...

WCF Performance

Nice article which refreshes the thread, threadpool concepts. The video also discusses about the relation between WCF and AppFabric. http://channel9.msdn.com/Shows/AppFabric-tv/AppFabrictv-Troubleshooting-WCF-Performance-Part-1 http://channel9.msdn.com/Shows/AppFabric-tv/AppFabrictv-Troubleshooting-WCF-Performance-Part-2 http://blogs.msdn.com/b/endpoint/archive/2011/05/04/wcf-scales-up-slowly-with-bursts-of-work.aspx

ASP Upload and localization

The Asp.Net (or in general html) file upload control displays the text "Browse". There is no attribute which allows controlling the text displayed. This goes against the localization principals which says every text/label may appear in local language. I did the following workaround... (Is there any simpler workaround... Your suggestions are welcome) ===Explanation=== Basically I hide the actual upload control and instead use proxy controls which look similar to the ones rendered by the browser and are localized. I have used javascripts to hook up required events to make it work like an exact original browser one. ====ASPX file==== <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="FileUpload._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script language=javascript> function Bubb...

Wish you new year 2011

Image

Server.MapPath in a helper class library

The Server.MapPath will not work directly when used from a class library directly. System.Web.HttpContext.Current.Server.MapPath should be used instead

Setting localized tooltips in a sort enabled radgrid

Problem statements 1. End user needs tooltips - even on the grid headers. (Not sure of scenario where user will move mouse over the grid headers, but our end users demanded for it). 2. Telerik grid normally has no problem with showing grid headers, but when showing sortable columns, it display linkbuttons for clicking and does not display the tooltip. 3. Although there is a custom way to display tooltips, we want tooltips from resource file (localized) and also do not want to hard code any string in the source code. We also want these tips to be localized. Following is what we did: protected void GridViewAccountDetails_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) { if (e.Item is GridHeaderItem) { GridColumnCollection gridColumnCollection = GridViewFindAudit.MasterTableView.Columns; GridHeaderItem gridHeaderItem = e.Item as GridHeaderItem; foreach (GridColumn column in gridColumnCollection) ...