Adrian Hara

Working through the .NET maze

  Home  |   Contact  |   Syndication    |   Login
  46 Posts | 0 Stories | 108 Comments | 10 Trackbacks

News

Twitter












Archives

Post Categories

February 2007 Entries

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><%#...