Dev express tab active

I am using dev express Tab control.I am using three tabs each tab contains one user control

<dxtc:ASPxPageControl ID="_pageControl" runat="server"
    RenderMode="Lightweight" Width="100%"

            <%-- user Control--%>
            <dxtc:TabPage Name="_userTabControl1" Text="Test1" >
                        <dxc:ContentControl      ID="_userTabContentControl1" runat="server">
                              <rmsc:RoleMappingSearchControl ID="_MappingSearchControl" runat="server" />

                <%-- _userTabControl2--%>
        <dxtc:TabPage Name="_userTabControl2" Text="Test2" >
                <dxc:ContentControl ID="_userTabContentControl2" runat="server">
                    <hysc:HyperLinkSearchControl ID="HyperLinkSearchControl" runat="server"/>

            <%-- _userTabControl3--%>
            <dxtc:TabPage Name="_userTabControl3" Text="Test3"  >
                        <dxc:ContentControl      ID="_userTabContentControl3" runat="server">
                              <dxc:ContentControl ID="_userTabContentControl3" runat="server">



In above three tabs all tabs user controls are executing.
My requirement is only selected tab or active user controls will work.for example if i click 1st tab,1st tab user control only execute.If i click on second tab,It should not execute first tab it will execute only second tab...
* Visibility wise no issues.Only clickable tabs are visible.
Can u please help me regarding this
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sameer Rakshesoftware developerCommented:
If you are using Devexpress controls you must be aware of ASPXCallback Panel.
Keep Tab Pages and Call back panel separately.
at client side on Tab Page change event call callback panel.
Inside Call back panel load user controls respective to tab pages runtime.

Use Below code for reference. Also I'm attaching one sample Code. I haven't tasted this project but I had already applied this logic twice.

protected void ASPxCallbackPanel1_Callback(object source, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e) {
        if (e.Parameter == "Show") {
            Session["Loaded"] = true;
        else {

    protected void LoadUserControl() {
        Control control = LoadControl("~/DataViewUserControl.ascx");
        control.ID = "uc";
    protected void UnloadUserControl() {

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.