This is a migrated thread and some comments may be shown as answers.

How to change RadTextBox TextMode=Password to Normal text in button click

1 Answer 94 Views
Input
This is a migrated thread and some comments may be shown as answers.
NA
Top achievements
Rank 1
NA asked on 23 Jan 2014, 02:51 PM
How to change  RadTextBox TextMode  is password change to normal text in server side code in asp.net

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 24 Jan 2014, 03:13 AM
Hi,

Please have a look into the following code snippet to change the TextMode in Button OnClick event.

ASPX:
<telerik:RadTextBox ID="RadTextBox1" runat="server" TextMode="Password">
</telerik:RadTextBox>
<telerik:RadButton ID="RadButton1" runat="server" Text="Change TextMode" OnClick="RadButton1_Click">
</telerik:RadButton>

C#:
protected void RadButton1_Click(object sender, EventArgs e)
{
    RadTextBox1.TextMode = Telerik.Web.UI.InputMode.SingleLine;
}

Thanks,
Shinu.
Tags
Input
Asked by
NA
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or