I’m basically a back end database kind of guy, but over the past years have been doing more front end web stuff.  Asp.Net has been a huge help for me, and now with Visual Studio 2008 and the JavaScript debugging capabilities, I’m finding doing web stuff is just not so bad.  Many of you know I’ve written several MSDN articles and one of them was over a year ago on how to add Ajax to my Membership solution (back then it was called Atlas).  The article is still out there though now a little out dated.  In it, I extensively use Alessandro’s code he posted on his blog.  My point here is Alessandro keeps up with this stuff, and as it turns out, he wrote an excellent book that’s been helping me out.

I enthusiastically recommend it to anyone trying to incorporate Ajax into their asp.net applications.  It’s not only got a great introduction, but also goes into lots of useful details for day to day programming.

Amazon.com: ASP.NET AJAX in Action

I noticed that when I set book marks in vs2008, it seemed to work when I set them, but when I cleared them, no joy!. Not being the smartest pencil in the jar, I did this over and over again thinking that my typing muscle memory was just failing me. Surely, something as simple as setting a bookmark could not have changed between versions! Next thing, control dot will not bring up the list of namespaces for an undefined function! (thankfully, that is not the case).

So, after finally realizing my finger muscle memory was not failing me on every bookmark set, I went to the menu command to see. It turns out that setting a bookmark is now control-b T (for toggle) and clearing bookmarks is control-b C (for clear). I’m blogging this in the hopes I can remember it in the future.

Continuing to enjoy vs2008 and the surprises right along the way.

So, I’ve been struggling for a while with how to style a checkbox to work with a skin file. Basically, what I did was create some gif files that look like checked and unchecked check boxes. I defined them in my SkinFile.skin file as follows:

<asp:ImageButton SkinID="iconCheckedDisabled" ImageUrl="Images/iconCheckedDisabled.gif" runat="server" ToolTip="Checked Disabled" />

<asp:ImageButton SkinID="iconCheckedEnabled" ImageUrl="Images/iconCheckedEnabled.gif" runat="server" ToolTip="Checked Enabled" />

<asp:ImageButton SkinID="iconUnCheckedDisabled" ImageUrl="Images/iconUnCheckedDisabled.gif" runat="server" ToolTip="Unchecked Disabled" />

<asp:ImageButton SkinID="iconUnCheckedEnabled" ImageUrl="Images/iconUnCheckedEnabled.gif" runat="server" ToolTip="Unchecked Enabled" />


The image files look like the following:

(more…)

© 2012 PeterKellner.net. All Rights Reserved