ASP.NET MVC Interface Controls - Textbox -
Client-Side events







Use the OnTextChanged event to detect when the text is changed.
To handle the keyboard actions you can use the OnKeyDown, OnKeyPress and OnKeyUp events.
C#

Html.Obout(new OboutTextBox("txt1")
{
    Width = 200,
    ClientSideEvents = new OboutTextBoxClientSideEvents()
    {
        OnTextChanged = "onTextChanged",
        OnKeyDown = "onKeyDown",
        OnKeyPress = "onKeyPress",
        OnKeyUp = "onKeyUp"
    }
})

"The controls you've created here are definitely the best and easiest to use that I've ever seen or worked with. ;)"

Daniel Burgess

Random testimonial   All testimonials