Skip to content

Instantly share code, notes, and snippets.

@mlehman
Created April 22, 2010 22:31
Show Gist options
  • Save mlehman/375914 to your computer and use it in GitHub Desktop.
Save mlehman/375914 to your computer and use it in GitHub Desktop.
Fluent.ControlFocus Example
<%@ Register TagPrefix="fluent" Namespace="Fluent.ControlFocus" Assembly="Fluent.ControlFocus" %>
...
<asp:TextBox runat="server" ID="FirstTextBox" /><br/>
<%-- the control below, SecondTextBox, will be focused on page load --%>
<asp:TextBox runat="server" ID="SecondTextBox" />
<fluent:ControlFocus runat="server" Control="SecondTextBox" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment