Trusted by the world’s leading companies
Overview
The ASP.NET Core TextBox (text field) is a control for editing, displaying, or entering plain text on forms to capture user names, phone numbers, email addresses, and more. This control is an extended version of the HTML5 TextBox (input type text) control with icons, floating labels, sizing, grouping, validation states, and more. It is available in an HTML5/CSS version and a JavaScript version.
ASP.NET Core TextBox
The ASP.NET Core TextBox control provides a floating label with minimal configuration. It supports most of the features that are available in the pure HTML5/CSS version of the TextBox control.
HTML5/CSS TextBox
The simple TextBox control renders using pure CSS and HTML. It supports all the essential features, such as input groups with icons, floating labels, multiline text, different sizing, and validation states.
Input group
Easily create input groups by prepending or appending icons, buttons, or text in the TextBox control. For example, you can prepend text with a dollar symbol ($) for price input, or prepend an at sign (@) for user names.
Floating label (placeholder text)
The ASP.NET Core TextBox control floats placeholder text to the top of the input box with an animation when the input receives focus or the input has a value. The floating label is used to ensure the input value and label are always visible.
Input sizing
The TextBox control has built-in sizing support (normal and small modes) to fit the input box’s size with sufficient padding and spacing.
Input validation with HTML forms
The ASP.NET Core TextBox control can validate the input value and apply the corresponding validation styles for success, error, and warning states, which are used in most standard HTML forms.
Multiline TextBox
The TextBox control can handle multiple lines of text with a floating label that helps you to accept addresses, descriptions, comments, feedback, and more.
Get and set text box values
Easily set or retrieve a value in the ASP.NET Core TextBox control to process it and enable a clear button to allow users to reset the input value.
Adornments
The TextBox control supports custom adornments using the prependTemplate and appendTemplate properties, which allow users to render custom elements like icons, buttons, or dropdowns to enhance user interaction with prefix and suffix elements.
Right-to-left (RTL) rendering
The ASP.NET Core TextBox control supports right-to-left (RTL) rendering. Users can change the text direction and layout to be from right to left. This improves the user experience and accessibility for users who use RTL languages.
Themes
The ASP.NET Core TextBox control has several built-in themes such as Material, Bootstrap, Fabric (Office 365), and high contrast. Users can customize any of these built-in themes or create new themes either by overriding Sass variables or using our Theme Studio application.
Developer-friendly APIs
Developers can control the appearance and behaviors of the ASP.NET Core TextBox control, including its floating label, using a rich set of APIs.
Other frameworks
The ASP.NET Core TextBox control is also available for the Blazor, JavaScript, Angular, React, and Vue frameworks, which are built from their own TypeScript libraries.
Not sure how to create your first ASP.NET Core TextBox? Our documentation can help.
I’d love to read it now140+ ASP.NET CORE UI CONTROLS
Frequently Asked Questions
Why should you choose the Syncfusion ASP.NET Core TextBox?
- Use an extended version of the HTML input element that supports both pure-CSS and pure-JavaScript versions.
Easily create input groups with icons, buttons, help text, and validation messages.
- Choose from standard Syncfusion themes, including Bootstrap v5 and Tailwind CSS.
- Add a modern look to your entered text and display floating labels.
Adjust the input size and use multiline mode.
Enjoy simple configuration and APIs.
- Render on all modern browsers with ease.
- Use a touch-friendly and responsive UI.
Take advantage of extensive demos and documentation to get started quickly with the control.
Where can I find the Syncfusion ASP.NET Core TextBox demo?
You can find our ASP.NET Core TextBox demo here.
Can I download and utilize the Syncfusion ASP.NET Core TextBox for free?
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
How do I get started with the Syncfusion ASP.NET Core TextBox?
A good place to start would be our comprehensive getting started documentation.
Our Customers Love Us
Awards
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.