KungfuMonkeySlayer

Ramblings from a sporty nerd!

asp Lists

asp lists – List<int s = new List<int>(); s.Add(1); s.Add(22); s.Add(33); customers.DataSource = s; customers.DataBind(); <asp:Repeater id=”customers” runat=”server”> <ItemTemplate> <tr> <td><%#Container.DataItem.ToString()%></td> </tr> </ItemTemplate> </asp:Repeater> source found on http://bytes.com/topic/asp-net/answers/567047-databinding-list-int

Random Linq

First time programming in a while and realised that I needed a random row, In SQL (2005 onwards) thats fairly easy; select top 4 * from table order by NewID() […]