Back to Devexpress

ASPxTextEdit.Text Property

aspnet-devexpress-dot-web-dot-aspxtextedit-a7e092db.md

latest5.0 KB
Original Source

ASPxTextEdit.Text Property

Gets or sets the text displayed within the editor.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public virtual string Text { get; set; }
vb
<DefaultValue("")>
Public Overridable Property Text As String

Property Value

TypeDefaultDescription
StringString.Empty

A String value representing the text within the editor.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Text property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-editors-create-registration-form/CS/ASPxEditorsTutorial.Step4/RegistrationForm.aspx.cs#L24

csharp
command.Parameters.AddWithValue("firstName", firstNameTextBox.Text);
command.Parameters.AddWithValue("lastName", lastNameTextBox.Text);

asp-net-web-forms-popup-change-visibility/CS/PopupInputFormServerSide/Default.aspx.cs#L18

csharp
protected void btnShowPopup_Click(object sender, EventArgs e) {
    txtPopup.Text = txtMain.Text;
    ASPxPopupControl1.ShowOnPageLoad = true;

asp-net-web-forms-create-responsive-web-app/CS/ResponsiveWebApplication/Account/SignIn.aspx.cs#L14

csharp
// DXCOMMENT: You Authentication logic
if(!AuthHelper.SignIn(UserNameTextBox.Text, PasswordButtonEdit.Text)) {
    GeneralErrorDiv.InnerText = "Invalid login attempt.";

asp-net-web-forms-grid-initialize-editor-conditionally/CS/WebApplication_Grid/Templates/CustomEditItemTemplate.cs#L20

csharp
txt.ID = "txt";
txt.Text = dataValue;
container.Controls.Add(txt);

asp-net-web-forms-editors-create-registration-form/VB/ASPxEditorsTutorial.Step4/RegistrationForm.aspx.vb#L23

vb
command.CommandText = "INSERT INTO [Users] (FirstName, LastName, Gender, BirthDate, Country, City, Email, UserPassword) VALUES (@firstName, @lastName, @gender, @birthDate, @country, @city, @email, @password)"
command.Parameters.AddWithValue("firstName", firstNameTextBox.Text)
command.Parameters.AddWithValue("lastName", lastNameTextBox.Text)

asp-net-web-forms-popup-change-visibility/VB/PopupInputFormServerSide/Default.aspx.vb#L16

vb
Protected Sub btnShowPopup_Click(ByVal sender As Object, ByVal e As EventArgs)
    txtPopup.Text = txtMain.Text
    ASPxPopupControl1.ShowOnPageLoad = True

asp-net-web-forms-grid-initialize-editor-conditionally/VB/WebApplication_Grid/Templates/CustomEditItemTemplate.vb#L22

vb
txt.ID = "txt"
txt.Text = dataValue
container.Controls.Add(txt)

Implements

Text

See Also

ASPxTextEdit Class

ASPxTextEdit Members

DevExpress.Web Namespace