SearchBox25
SearchBox25 is a lightweight search input control designed
for filtering and quick lookup operations. It renders a compact search
textbox with an associated action button and supports configurable widths
for flexible placement within toolbars, headers, and forms.
Key Features
- Compact search input with submit button
- Configurable input width
- Supports predefined search values
- Bootstrap small form styling
- Ideal for grids, lists, and header toolbars
Control Configuration
SearchBox25 is configured using the Style1 class, which defines
the appearance and behavior of the search input and button.
- ControlId – Name attribute of the search input
- Label – Text label displayed next to the search box
- Value – Default or current search text
- ButtonText – Text displayed on the search button
- Length – Width of the search input
Length Options
- S1 – 50px
- S2 – 100px
- S3 – 150px
- S4 – 200px
- S5 – 250px
- Max – 100% width
Sample Code
var search = new SearchBox25.Style1
{
ControlId = "txtSearch",
Label = "Search:",
Value = "",
ButtonText = "Go",
Length = SearchBox25.Length.S3
};
@Html.Raw(SearchBox25.GetHtml(search))