Steve Clements

.Net and then some....


News




MCP

Add to Google
Add to Technorati Favorites



Subscribe to this Blog by Email


this is Steve's profile
Locations of visitors to this page

My Stats

  • Posts - 126
  • Comments - 255
  • Trackbacks - 38

Twitter












Tag Cloud


Recent Comments


Recent Posts


Archives


Post Categories


Image Galleries


Fav Blogs


Fav Places


Services!


Top Kudos


May 2008 Entries

LINQ the lot


LINQ goes so much further than just SQL and XML.

Something like this is just why I love LINQ, a LINQ query on an ASP.NET ListView controls items.

   1:  Dim items = From lvi In AspNetListViewControl.Items _
   2:              Where CType(lvi.FindControl("DropDownList1"), 
	                DropDownList).SelectedValue = someIntVar _
   3:     Select lvi)

 

Getting a ListViewItem's where the selected value of a DropDownList is set to the value I want.  So simple, yet so powerful.

The observant among you will notice that this is in VB.net, not my native C#!! More on that soon! :)

Technorati Tags: ,

posted @ Wednesday, May 28, 2008 5:01 PM | Feedback (0) |


Microsoft Source Analysis for C#


image I was just about to blog about this, then I found this post while scanning the asp.net feedGuy Barrette does a great job of summarising it.

 

If your in a rush, the home page is:

http://blogs.msdn.com/sourceanalysis/

and you can download it from here:

http://code.msdn.microsoft.com/sourceanalysis/Release/ProjectReleases.aspx?ReleaseId=1047

 

While in the link mode; I spotted this at the same time on Charlie Calvert's blog a quick list of keyboard shortcuts for VS2008

posted @ Monday, May 26, 2008 9:22 AM | Feedback (0) |


Playing with ListStyles.xsl for CQWP in MOSS


Although new to all this MOSS stuff I am getting stuck in with the Content Query Web Part (CQWP) and XSL.  They are a pretty powerful combination, but pretty soon I could see how this could become slightly wild and considering ListStyles.xsl is an "out of the box" file, getting crazy with custom files could become more of a problem than simply a huge file. 

Check out these two posts on how to manage custom styles.

1. Liam (Sharepoint MVP here in the UK) posts about editing the ListStyles.xsl, but only to add import statements to your own custom csl files.

2. Brendon Swartz post about how to create a new CQWP instance by exporting the default one, editing the webparts xml definition by adding a statement to reference your custom xsl file.

I guess it comes down to whether you are happy, or even able to edit the ListStyles.xsl file, number 1 is certainly the easiest route and my choice, but I can see value in having a CQWP instance for each style.  I certainly am no fan of big changes in OOTB files, granularity is good :)

 

Technorati Tags: ,,

posted @ Friday, May 23, 2008 5:27 PM | Feedback (0) |