Noteworthy Details

Today I learned several things that were "noteworthy" so I might as well share my knowledge. Whenever I learn something new in the course of my work I add it to my massive collection of notes.

My most significant discovery was the built-in JSON Viewer in Nikhil Kothari's Web Development Helper. I did not realize this tool included a JSON Viewer because it is well hidden. To find it you need to enable logging, then highlight a log entry that corresponds with a JSON request. Click the Show Details... link in the right menu. Then click the Response Content tab as shown below and select JSON as the Viewer. I added this to my notes because it would be hard to find again.

As you can see, I was checking out the JSON web service that DotNetKicks provides. They are using Jayrock for the Microsoft .NET Framework. I was unable to figure out how to use this with jQuery because there is no callback function. There may be an undocumented method I found mentioned on a newsgroup but I have not tried it yet. I did find out how to call a method using a GET request. Just add a backslash and the method name at the end of the web service URL like so: http://www.dotnetkicks.com/services/json/jsonservices.ashx/getFrontPageStories. I added that to my Jayrock notes but I lost interest in that due to cross domain request restrictions.

I have installed Video.Show on my development web server and I plan to really study it because I love video sharing sites. One of my first steps was to generate a data dictionary. There is a data diagram embedded in one of the project's Word documents. I extracted that but it is still hard to read. I needed to convert my data dictionary page to C# to run it within the VideoShow project. In the course of doing this I found a way to make the DataGrid web control generate TH tags for table headers instead of TD. You can do this using the obscure UseAccessibleHeader property like so: DataGrid1.UseAccessibleHeader = true; This was "noteworthy" because a property named UseAccessibleHeader does not give you a clue as to what it does. Even the intellisense for it makes no mention of the TH tag.

I added a new topic to my notes for the .NET Reflector. This tool allows you to disassemble a compiled DLL. As you can see in the screen capture, it could also be useful in translating a method from one language to another. However it frequently asks you to resolve assembly names so I had to document how to find the physical file location of an assembly in the Assembly Cache and the GAC.

1 Comment

Comments have been disabled for this content.