I've been playing a bit with (d)Linq lately so there are probably some related blog posts coming this way :). Today, for example, I was trying to get the logic for a search form to work. The form is pretty basic, allowing the user to search a books library based on several fields, like Title, Author, Publisher etc. The search should tokenize the input from each field and then build the final condition by OR-ing the conditions for each field together, provided that something was entered in that search ......
Today I experienced what I believe to be a classic asp.net dynamically loaded controls gotcha. Here's the scenario: I have one page with a panel on it like so: <asp:Panel ID="pnlGrid" runat="server"></asp:... ...plus I have a user control, GridControl.ascx, like so: <asp:GridView ID="gv" runat="server" AutoGenerateColumns="false" Width="100%"> <Columns> <asp:TemplateField HeaderStyle-VerticalAlign="... <HeaderTemplate>Fooba... <ItemTemplate><%# ......