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

Is it possible to load usercontrol in RadMenu OnClientItemClicked?

0 Answers 63 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 1
Arun asked on 29 Jul 2009, 05:58 AM
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

No answers yet. Maybe you can help?

Tags
Menu
Asked by
Arun
Top achievements
Rank 1
Share this question
or