New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Accessing RadControls in the master pages of Visual Studio from inner aspx/ascx pages
HOW-TO
Access RadControls in the master pages of Visual Studio from inner aspx/ascx pages
SOLUTION
The ASP.NET Web Forms framework adds a specific type of page that may be used in your VS.NET projects - the master page. It acts as a common template to all your project web forms. If you need to have a RadControl in the master page and access it from a web form that uses the master page apply the following syntax:
C#
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
RadTabStrip myRadTabStrip = (RadTabStrip)this.Master.FindControl("RadTabStrip1");
}
}