Archive for June 17th, 2006

17 Jun 2006

Why product testing is important?

1 Comment Fun & Humorous, Programming

Here is another good reason of why product testing is always important. :)

Why product testing is important

Why product testing is important

Why product testing is important

Why product testing is important

Look like someone did last minute adjustment before delivery.

17 Jun 2006

Favlets – Must have tools for ASP.NET developers

No Comments ASP.NET, Web Development

Favlets are actually a small JavaScript code prefixed with “javascript:” which are store as URL in hyper link. Interesting thing about Favlets is that you can directly run this script from address bar of your browser and so you can save this script as URL and store it in your Favorites folder, and that’s why these Javascript code is called Favlets.

The beauty of Favlets is that it can access any part of page currently open in your browser. To elaborate that, it means that now you can get any element of existing open page in some variable and then you can use that variable to display its property or to modify its property.

How to install Favlets?
Well, it’s a simple as book marking this page to your favorites. Simply drag any Favlets link in your Link or Favorites folder. Now open any web page in browser and click the Favlets.

Here is the small tutorial on installing Favlets in your browser:
How to use favlets
Bookmarklets – Browser Power
About Bookmarklets

Here is the list of Favlets from my web development tool box:
Source: Slime
View Tables – Creates a thin blue border around every <table> element on the page, and a thin green one around table cells. Useful for figuring out old table layouts.

View Divs – Creates a thin red border around every <div> element on the page. Often useful to see how the browser is handling CSS.

Execute JavaScript Code – The ultimate favelet. Allows you to execute any JavaScript code that you want to.

Display Properties of Object – Displays all of the properties of a given object (for example, document.body, window.navigator, or document.getElementById(‘myelem’)). If there are too many properties to display on separate lines, they are displayed on a single line and separated with “|||.” Exact result is browser-dependant. Useful for debugging scripts.

Source: Favlets
Elements Inspector – Shows the properties of any HTML element on
mouseover. “ESC” key turns the favlet off.

Source: W3C
Validate This Page – This is the basic “Validate This Page” Favelet. It simply submits the URL for the currently viewed page to the Validator for processing. Results appear in the same window.

Source: Squarefree
Read Cookie for Site – Shows cookies stored by the page you’re viewing.

Some Other Links:
About Bookmarklets
Page Data bookmarklets
Blog Remote Posting Bookmarklet
Bookmarklets
Developer Bookmarklets
Bookmarklets
Bookmarklets and other useful things for IE’s Links bar

17 Jun 2006

ASP.NET State Management: View State

1 Comment ASP.NET

Milan Negovan has written an article to provide in-depth prospective on view state mechanism. In his article, he suggested some do’s and dont’s on using view state, like how simply disabling view state of whole page, can great enhance the performance of page if you just need to display a DataGrid on the page with no PostBack.

URL: ASP.NET State Management: View State

I have seen many times, that developers keep EnableViewState true even if they simply have to display a single page report (as most of the reports as basically rendered using DataGrid, and this DataGrid control really generate huge stuff for view state).

Alternatively, you can also think of storing view state of page at server. How? Milan has answer of this question in his article.

17 Jun 2006

Online C#/VB.NET Compiler!

5 Comments .NET Tools, C#

Yes, you can now compile your C# or VB.NET code online, simply put your code in the provided text box and click “Compile Now” button. Compilr will compile your code and provide you the link as well to download complied version of your code. Any error while compilation will display error message on page.

URL: Compilr