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?