Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to change tab index from the child page

How to change tab index from the child page

Scheduled Pinned Locked Moved ASP.NET
databasesysadmindockertutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vjvjvjvj
    wrote on last edited by
    #1

    Hi, I have a tab container with two tab panels on default.aspx as

    Default.aspx

    <ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server" />

        <ajaxToolkit:TabContainer   ID="LayerTabContainer" 
                                    runat="server" 
                                    ActiveTabIndex="0" 
                                    Height="600px">
            <ajaxToolkit:TabPanel   ID="CreateLayerPanel" 
                                    runat="server">
                <HeaderTemplate >
                Layer configuration
                </HeaderTemplate>
                <ContentTemplate>
               
                    <iframe id="LayerConfig" 
                            style="WIDTH: 100%; HEIGHT: 100%" 
                            src="Layers.aspx" 
                            frameborder="0" 
                            scrolling="yes">
    				</iframe>
                
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
           <ajaxToolkit:TabPanel   ID="PreviewMapPanel" 
                                    runat="server">
                <HeaderTemplate >
                Preview Map
                </HeaderTemplate>
                <ContentTemplate>
               
                    <iframe id="Iframe1" 
                            style="WIDTH: 100%; HEIGHT: 100%" 
                            src="Preview.aspx" 
                            frameborder="0" 
                            scrolling="yes">
    				</iframe>
                
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>
    

    The first tab panel hosts Layers.aspx and layer.aspx has a Button. When I click this button from Layer.aspx, I want the active tab (on default.aspx) to change to second tab panel which hosts preview.aspx. I can not get hold of the tabcontainer in the button click event in the child page. Any tips how to achieve this? Thanks, Vijay

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups