Dev express tab active

Posted on 2014-07-23
Last Modified: 2014-08-09
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
Question by:mannevenu26
    1 Comment
    LVL 1

    Accepted Solution

    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() {

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now