This is a migrated thread and some comments may be shown as answers.
Radtextbox.text not updating
1 Answer 30 Views
This is a migrated thread and some comments may be shown as answers.
SKande
Top achievements
Rank 2
SKande asked on 06 Aug 2013, 08:38 PM

Hello I am very new to the telerik controls I am trying to change the radbox text in the page load event but it is not changing .

 

<radtextbox id="test" runat="server"
  
public void page_load()
{
  test.Text= Session.PageCount.ToString(); 
}

1 Answer, 1 is accepted

Sort by
0
Accepted
A2H
Top achievements
Rank 1
answered on 07 Aug 2013, 01:08 AM

Hi,

Your HTML mark up for RadTextbox is wrong, Usually Telerik controls will have a TagPrefix “telerik”, just like "asp" for asp.net controls.

Please modify your code like given below

<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadTextBox ID="test" runat="server">
        </telerik:RadTextBox>

Side Note : Make sure you have the below tag prefix line in your page.

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>


Please refer the below links to get started with Telerik Controls

Telerik Rad Controls Introduction

Telerik RadTextboxDemo

Adding a new Telerik Rad controls to a ASP.Net page

Thanks,
A2H

Tags
Ajax
Asked by
SKande
Top achievements
Rank 2
Answers by
A2H
Top achievements
Rank 1
Share this question
or