Is it possible to load usercontrol in RadMenu OnClientItemClicked?

1 posts, 0 answers
  1. Arun
    Arun avatar
    15 posts
    Member since:
    Apr 2009

    Posted 29 Jul 2009 Link to this post

    protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)  
        {  
            if (e.Item.AccessKey.ToString() == "1")  
            {  
                Control control = LoadControl("home.ascx");  
                control.ID = control.ToString();  
                ContentPlaceHolder1.Controls.Clear();  
                ContentPlaceHolder1.Controls.Add(control);  
            }  
            else 
            {  
                Control control = LoadControl("abt.ascx");  
                control.ID = control.ToString();  
                ContentPlaceHolder1.Controls.Clear();  
                ContentPlaceHolder1.Controls.Add(control);  
            }  
        } 


    The above code works fine. And the refresh is eliminated using RadAjaxManager, but for further development process we need do do the above function in client side. I dnt hve an idea whether its is possible, or is there any better method that can be followed to do this in client side.

    Thanks in Advance.
    Arun.M

Back to Top