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

access rad control inside user namespace

2 Answers 16 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nurmemet Suleiman
Top achievements
Rank 1
Nurmemet Suleiman asked on 16 Nov 2009, 03:10 AM
Hi,

I cannot access any RadControl's inside my user control or aspx pages. Because I used my own namespace. I don't know how to access rad control inside my namespace. So I need help. When I remove my namespace it work. But, I need to use my namespace. So, could any one help me please???

example:

using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Telerik.Web.UI;

namespace MySite
{
    public partial class UserControl_userContactDetails : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
              RadTextbox1.text="Welcome to My new site!"; // getting error
            }
        }
       
    }
}

2 Answers, 1 is accepted

Sort by
0
Nurmemet Suleiman
Top achievements
Rank 1
answered on 16 Nov 2009, 02:09 PM
I need help please......................................
0
Yana
Telerik team
answered on 16 Nov 2009, 02:21 PM
Hello Nurmemet,

RadControls are supposed to work in this case, please check whether the asp controls are referenced right in the code-behind. I've also attached a test page which works without a problem at our side.

Best wishes,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Nurmemet Suleiman
Top achievements
Rank 1
Answers by
Nurmemet Suleiman
Top achievements
Rank 1
Yana
Telerik team
Share this question
or