Who Are We?

Fluent Consulting is a software development and consulting firm that specializes in enterprise application integration, web applications, and software product development. We are a dedicated team focused on providing the highest level of quality and value for our clients.

Please feel free to visit our corporate site or get in touch!




MultiLineTextBoxValidator component released

Fluent.MultiLineTextBoxValidator is a validator control which will restrict the length of MultiLine TextBox controls. The MaxLength property of the .NET TextBox control does not have any effect if the TextMode property is set to MultiLine. This is because MultiLine TextBox controls are rendered in HTML as TEXTAREA tags, which cannot have a restricted length. This control adds Javascript support to achieve the length restriction. In addition it can provide feedback of the number of characters remaining before the MaxLength cutoff will be reached. Demo and download now!

<%@ Register TagPrefix="fluent" Namespace="Fluent.MultiLineTextBoxValidator" Assembly="Fluent.MultiLineTextBoxValidator" %>

Message:<br/>
<asp:TextBox id="TestTextBox" Runat="server"
    Rows="10" 
    Columns="50" 
    TextMode="MultiLine" />
<br/>

<fluent:MultiLineTextBoxValidator Runat="server" 
    ControlToValidate="TestTextBox" 
    MaxLength="10" 
    OutputControl="TestTextBox2" 
    ErrorMessage="Too long!" 
    ShowJavascriptAlert="True" 
    EnableClientSideRestriction="True" 
    ShowCharacterCount="True" />
    
<br/><br/>
                        
<asp:TextBox id="TestTextBox2" Runat="server" /> characters remaining
<br/><br/><br/>

<asp:Button Runat="server" Text="Submit" />

This entry was posted in the following categories: Aspect-Oriented Components
Posted by on December 11, 2003 | Permanent Link | Comments (0)



Copyright © 2002-2003 Fluent Consulting. All rights reserved.