Posts

Showing posts from October, 2013

How to fix "Sys is undefined" error ?

Image
Recently I have faced a strange issue in the process of developing a task using script manager for async post backs. The error is " webresource.axd and scriptresource.axd 404 not found " whenever I do any async call I use to get this error " sys is not defined ". I have tried a lot to fix this issue by following the below links. 1. http://blogs.msdn.com/b/carloc/archive/2008/12/04/webresource-axd-or-scriptresource-axd-not-working.aspx 2. http://imnettellect.blogspot.in/2010/12/iis-75-webresourceaxd-and.html 3. http://stackoverflow.com/questions/1433512/asp-net-web-application-webresource-axd-and-scriptresource-axd-files-loading and so on .... After spending 4 hours I found a new property on asp.net 4.0 called EnableCdn that basically, if it's set to "true", it loads the resources from the Microsoft content resource servers. Refer this link for information about EnableCDN . This worked like a charm and fixed my issue. I hope this snippet can help

How to hide bootStrap popover when user click(s) outside the popover?

Hiding bootStrap popover when user click(s) outside the popover Recently I have experienced this problem i.e., hiding the popover when we click outsode the popover.I have worked on it and fixed the issue.So,I thought to share this fix. For more detail(s) about the bootStrap please refer this link PopOver popover plugin has a property called " trigger " of type String with default event as " click " and popover can be triggered by click/hover/focus/manual.  To show the popover we need to prepare the HTML mark-up as given below < div class = " btn-group " > < div class = " btn-group " id = " ddlSelected " style = " clear: both; " > < button class = " btn btn-primary btnSelectedStyle selectedBorderStyle " type = " button " > Your selected Items ( < b id = " lblSelectedItemCount " > 0 < / b > ) < / butt