Posts

Avoid click of a button twice

This is a very common requirement that the user should not click on the button twice while submitting. The best option to use the below code on the page load PostBackOptions pbOptions = new PostBackOptions(btnSave); btnSave.OnClientClick = "this.disabled = true; this.style.cursor='wait';"; btnSave.OnClientClick += Page.ClientScript.GetPostBackEventReference(pbOptions); If you are using a Image button, instead of this use the document.getElementById('ctl00_btnSave') Hope this helps.. Cheers!!!

Worldwide Browser Market Share

Check out the worldwide browser market share... IE and firefox still rules.... http://arstechnica.com/microsoft/news/2009/05/april-2009-browser-stats-firefox-and-chrome-gain.ars Cheers!!!

Win 7 RC available for download

Win 7 RC available for download at http://www.microsoft.com/windows/windows-7/download.aspx Cheers!!!

Back to Blogging

I was away from blogging for sometime was having some hectic schedules. Hopefully i will better my frequency of blogging. Cheers!!!

Tips for Enabling/Disabling ASP.NET Checkbox using Javascript

When we use a ASP.NET checkbox and by default keep it disabled. If you see the view we will notice as seen below span disabled='disabled' > input type='checkbox' disabled='disabled' > Now if we say document.getElementById("chktest").disabled = false; . This will not work. The workaround is document.getElementById("chktest").disabled = false; document.getElementById("chktest").parentNode.disabled = false; Cheers!!!

Tips while using ASP.NET AJAX

When we use the ASP.NET AJAX, we have to ensure that the extensions are installed if you are using VS 2005. Also you have to ensure that the necessary web.config enteries are there. For the detailed enteries please look at this site http://geekswithblogs.net/ranganh/archive/2007/07/15/113963.aspx This is necessary when you are using the AJAX Toolkit Library. Cheers!!!

Good Articles on Design Patterns

Just came across this good articles on design patterns http://blog.cumps.be/tags/design-patterns/ Cheers!!!

Domain-Driven Design

Read this article about Domain-Driven Design at http://msdn.microsoft.com/hi-in/magazine/dd419654(en-us).aspx Happy Reading... Cheers!!!

SQL Server 2008 on Windows 7

I tried to install Sql Server 2008 on Windows 7 ... result is ... it was such a smooth installation. No issues at all.. Cheers!!!

Articles related to Building Enterprise Apps using Silverlight

Nice articles to build enterprise apps using silverlight. Part 1 - http://msdn.microsoft.com/hi-in/magazine/2009.01.entslpt1(en-us).aspx Part 2 - http://msdn.microsoft.com/hi-in/magazine/dd434653(en-us).aspx Happy Reading..... Cheers!!!

AJAX Architecture Articles

Nice articles on AJAX Architecture Part 1 - http://msdn.microsoft.com/en-us/magazine/cc163363.aspx Part 2 - http://msdn.microsoft.com/en-us/magazine/cc163347.aspx Cheers!!!

How to run classic ASP on IIS 7.0

One of my friend had this issue to run classic ASP on IIS 7.0 . Then i just searched the web and got the excellent article. Bingo it worked ...... The link is http://www.alexthissen.nl/blogs/main/archive/2008/02/18/running-classic-asp-on-iis-7.aspx Really a good help. Cheers!!!

SilverLight bags the 2009 Technology of the Year Awards for Application Development

2009 Technology of the Year Awards: Application Development go to SilverLight and check out for more details here http://www.infoworld.com/slideshow/2009/01/195-2009_technology-6.html Cheers!!!

Festival of Life Meetings

Joyce Meyer's Meetings was really a true blessing. There was 3 days of morning conference and 4 days evening meetings. The morning conference was truely amazing as various great preachers had preached. They were 1. Joyce Meyer 2. Tommy Barnett 3. Darlene Zschech 4. Paul Thangiah 5. Mohan and few more.. There was amazing worship from Delirious and HillSong . As we worshipped there was a anointing of god flowing in the place. I feel great to have been there. Cheers!!!

Tips using Fault Contract

When we are using Fault Contracts, We would be having in the Catch block as catch (Exception ex) { MySampleFault fault = new MySampleFault(); fault.Reason = "Error Message is " + ex.Message.ToString(); throw new FaultException (fault); } But at the throw, an error is displayed "The creator of this fault did not specify a reason". On checking various options, the error goes only when you rewrite it as throw new FaultException (fault, new FaultReason(ex.Message.ToString())); Cheers!!!

Check out whats new in windows 7

Check out What's new in Windows 7 at http://www.microsoft.com/windows/windows-7/whats-new.aspx Cheers!!!

Windows 7 Installed

I installed windows 7 yesterday on my VPC 2007. Looks good. Need to still explore on it. Cheers!!!

Some more tips on WCF

Image
I was trying to create a proxy for a WCF console application, but whenever i gave this command svcutil http://localhost/servicename I used to get an error and the proxy was not getting created . The i browsed the url and found that it was not enabled. So i had to add the "behaviors' node to the web.config of the host console application as Once this was done and also added the attribute "behaviorConfiguration="mybehaviors"" to the service node . Bingo the proxy was generated .. Cheers!!!

ServiceModel Metadata Utility Tool (Svcutil.exe)

The svcutil utility is a one used to create the proxy for a WCF service svcutil url more on svcutil can be seen at http://msdn.microsoft.com/en-us/library/aa347733.aspx Cheers!!!

Tips while working on WCF

While working on WCF application, i encountered an error but could not see the message . I was only getting this message " The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs." To enable to see the error , go to the web.config and set the includeExceptionDetailInFaults to true . Cheers!!!