C#

Subtext comes with a handy little gallery feature which I can't fault as it does everything you would expect a gallery component to do however, I was finding it a little frustrating putting albums up all over the place so I decided to take the plunge and write a quick control that looks at my Flickr account.  The title isn't really that accurate as I plan on keeping the subtext gallery control on my pages until I am happy I have transferred, backed up and organised everything. The benefits are obvious, all changes are done centrally, files are stored on...

posted @ 23 January 2008 15:47 | Feedback (0) | Filed Under [ ASP.NET | C# | SubText | Web Development | ]

This is very straightforward and can add some extra functionality to your forms in the sense of if this value is selected show that div.  Within the asp.net page we add the control to the page: <asp:RadioButtonList ID="grpLocation" runat="server" RepeatDirection="Horizontal" OnDataBound="grpLocation_onDataBound"> </asp:RadioButtonList>  Within the code behind we add some listitems to the Radio button list: ListItem A = new ListItem("Edinburgh", "Edinburgh"); ListItem B = new ListItem("Glasgow", "Glasgow"); ListItem C = new ListItem("Aberdeen", "Aberdeen"); ListItem D = new ListItem("Scotland", "Scotland"); grpLocation.Items.Add(A); grpLocation.Items.Add(B); grpLocation.Items.Add(C);grpLocation.Items.Add(D); grpLocation.DataBind(); In the code behind we add the following code to the grpLocation_onDataBound event: RadioButtonList rbl = (RadioButtonList)sender; foreach (ListItem li in rbl.Items) ...

posted @ 08 November 2007 12:55 | Feedback (5) | Filed Under [ C# | jQuery | Web Development | ]

Applying a different background colour to each texbox or a web control that supports the background attribute can give you an area to play with that can "jazz" up a form/page. Some modifications can be made so that the colour can be applied to border, fore colour or even text colur if the control supports it.

posted @ 29 June 2007 13:08 | Feedback (0) | Filed Under [ C# | Web Development | ]

Phil does it again.  Back to basics in relation to using methods that already exist in the .Net Framework. Aswell as his list some of the comments also contain pieces of code that are valuable and over looked. Check out his post http://www.haacked.com/archive/2007/06/13/the-most-useful- .net-utility-classes-developers-tend-to-reinvent.aspx One for the favourites

posted @ 14 June 2007 16:29 | Feedback (0) | Filed Under [ ASP.NET | C# | ]
I'm test driven