I have a strange problem with a sample test web application.
I put a single radtextbox on the aspx page along with a standard asp.net button. What I do is, I set the value to the text property of the radtextbox in Page_Load method and after I change the value of the radtextbox and click the button to go to the server side, the text value is still the same.
Same thing applies to all radinput controls, radeditor, etc.
Am I doing something wrong?
Here are the contents of my sample application:
ASPX:
C#:
When I change the value aaabbbccc to something else and click the button, the value of RadTextBox1.Text is still aaabbbccc!
I put a single radtextbox on the aspx page along with a standard asp.net button. What I do is, I set the value to the text property of the radtextbox in Page_Load method and after I change the value of the radtextbox and click the button to go to the server side, the text value is still the same.
Same thing applies to all radinput controls, radeditor, etc.
Am I doing something wrong?
Here are the contents of my sample application:
ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TESTAPP._Default" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" > |
<head runat="server"> |
<title>Untitled Page</title> |
</head> |
<body> |
<form id="form1" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
<div> |
<telerik:RadTextBox ID="RadTextBox1" runat="server"> |
</telerik:RadTextBox> |
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> |
</div> |
</form> |
</body> |
</html> |
C#:
using System; |
using System.Collections; |
using System.Configuration; |
using System.Data; |
using System.Linq; |
using System.Web; |
using System.Web.Security; |
using System.Web.UI; |
using System.Web.UI.HtmlControls; |
using System.Web.UI.WebControls; |
using System.Web.UI.WebControls.WebParts; |
using System.Xml.Linq; |
namespace TESTAPP |
{ |
public partial class _Default : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
RadTextBox1.Text = "aaabbbccc"; |
} |
protected void Button1_Click(object sender, EventArgs e) |
{ |
string s = RadTextBox1.Text; |
} |
} |
} |
When I change the value aaabbbccc to something else and click the button, the value of RadTextBox1.Text is still aaabbbccc!