Timer in UpdatePanel

Is there a specifc reason why you have the Timer control in the UpdatePanel? Every time I have needed to use a Timer control to cause an UpdatePanel refresh, I have set it up like the following and it works fine with MasterPages: <asp:UpdatePanel ID=”UpdatePanel1″ runat=”server” UpdateMode=”Conditional”> <Triggers> <asp:AsyncPostBackTrigger ControlID=”Timer1″ EventName=”Tick” /> </Triggers> <ContentTemplate> <!– … Read more

Loop through all controls on asp.net webpage

I rather like David Finleys linq approach to FindControl http://weblogs.asp.net/dfindley/archive/2007/06/29/linq-the-uber-findcontrol.aspx public static class PageExtensions { public static IEnumerable<Control> All(this ControlCollection controls) { foreach (Control control in controls) { foreach (Control grandChild in control.Controls.All()) yield return grandChild; yield return control; } } } Usage: // get the first empty textbox TextBox firstEmpty = accountDetails.Controls .All() .OfType<TextBox>() … Read more