
Introduction
I was playing with internet explorer context menu, suddenly I noted that I have menu item called "export to Microsoft Excel".

When I clicked on this command it is transferred the contents of the selected table to Microsoft excel.
How did I steal the code?
To guess what was happing on when I clicked on the context menu item, I used the IE feature, break at next statement (from menu item choose View-> Script Debugger->Break at Next Statement ), and made a small table and as I clicked on the menu and I got the VBScript file in Visual Studio .NET.
How did I link the datagrid with the script?
I have used something called HTC "HTML Components" which is a good thing to learn if you are developing an ASP.NET Server Control. My HTC script is divided in to two parts :
How to use it?
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here