Skip to content

Instantly share code, notes, and snippets.

@mlehman
mlehman / Fluent.ListTransfer.aspx
Created April 22, 2010 22:57
Fluent.ListTransfer Example
<%@ Register TagPrefix="fluent" Namespace="Fluent" Assembly="Fluent.ListTransfer" %>
...
<fluent:ListTransfer Runat="server" ID="ListTransferEmployees"
ListControlTo="ListBoxProjectMembers"
ListControlFrom="ListBoxEmployees"
EnableClientSide="True"
>
<asp:ListBox ID="ListBoxEmployees" Runat="server"
SelectionMode="Multiple"
@mlehman
mlehman / Fluent.DataGridAdapter.aspx
Created April 22, 2010 22:53
Fluent.DataGridAdapter Example
<%@ Register TagPrefix="fluent" Namespace="Fluent"
Assembly="Fluent.DataGridAdapter" %>
<html>
<head>
<script language="C#" runat="server">
protected void DataGridAdapter1_DataGridBinding(
DataGridAdapter sender, DataGridBindingEventArgs e) {
SqlDataAccessCommand command;
@mlehman
mlehman / Fluent.ControlFocus.aspx
Created April 22, 2010 22:31
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" />
@mlehman
mlehman / Fluent.ListBoxValidator.aspx
Created April 22, 2010 22:26
Fluent.ListBoxValidator Example
<%@ Register TagPrefix="fluent" Namespace="Fluent" Assembly="Fluent.ListBoxValidator" %>
...
<asp:ListBox ID="ListBoxEmployees" SelectionMode="Multiple" Runat="server"/>
<fluent:ListBoxValidator
ID="ListBoxValidator1"
Runat="server"
ControlToValidate="ListBoxEmployees"
ErrorMessage="Please select an employee"