aspnet-devexpress-dot-web-dot-aspxtextedit-a7e092db.md
Gets or sets the text displayed within the editor.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public virtual string Text { get; set; }
<DefaultValue("")>
Public Overridable Property Text As String
| Type | Default | Description |
|---|---|---|
| String | String.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.
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
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
// DXCOMMENT: You Authentication logic
if(!AuthHelper.SignIn(UserNameTextBox.Text, PasswordButtonEdit.Text)) {
GeneralErrorDiv.InnerText = "Invalid login attempt.";
txt.ID = "txt";
txt.Text = dataValue;
container.Controls.Add(txt);
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
Protected Sub btnShowPopup_Click(ByVal sender As Object, ByVal e As EventArgs)
txtPopup.Text = txtMain.Text
ASPxPopupControl1.ShowOnPageLoad = True
txt.ID = "txt"
txt.Text = dataValue
container.Controls.Add(txt)
See Also