Radtextbox.text not updating

2 posts, 1 answers
  1. SKande
    SKande avatar
    27 posts
    Member since:
    May 2013

    Posted 06 Aug 2013 Link to this post

    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(); 
    }
  2. Answer
    A2H
    A2H avatar
    177 posts
    Member since:
    Mar 2010

    Posted 06 Aug 2013 Link to this post

    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

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top