Tuesday, September 28, 2010

CameTooFar New Web Site launched

Hi Readers, Thank You for supporting me all these time. I’m moving this blog to a new website – CameTooFar, a more dedicated blog. You can view the blog contents here.

Please update your RSS subscription link to get the latest updates.

RSS link: subscribe to CameTooFar.

Thank You once again.

See you there.

Sunday, March 14, 2010

Pass values between 2 MDI Child Forms using C# and VB.NET

The contents of the post has been moved to here. Please follow the link to see the contents.

Sorry for the inconvenience.


Remove Empty Records from DataTable

The content of this post has been moved here. Please check this link to view the contents.

Sorry for the inconvenience.


Thursday, November 19, 2009

Office 2010 direct download link

Huh! Office 2010 Beta is out for public. I’d started downloading. What about you?

Here is the direct download link.



Saturday, October 17, 2009

How to get time elapsed after loading a webpage

How to get the time elapsed time after loading a webpage, using Callback() in MS Ajax library. Here is a sample script;


   1: <script type="text/javascript">
   2:         // Page Load
   3:         function pageLoad() {
   4:             var loadTime = {date : new Date()};
   5:             var callback = Function.createCallback(onBtnClick, loadTime);
   7:             $addHandler($get("Button1"), "click", callback);
   8:         }
  10:         function onBtnClick(event, context) {
  11:             var loadTime = context.date;
  12:             var elapseTime = (new Date() - loadTime) / 1000;
  14:             $get("Text1").value = elapseTime + " Seconds";
  15:         }
  16:     </script>


   1: <form id="form1" runat="server">
   2:     <asp:ScriptManager ID="ScriptManager1" runat="server">
   3:     </asp:ScriptManager>
   4:     <div>
   5:         Time elapsed since PageLoad: 
   6:         <input id="Text1" type="text" />
   7:         <input id="Button1" type="button" value="Get Elapsed Time" />
   8:     </div>
   9:     </form>


Best viewed in Internet Explorer 8.