Results 1 to 2 of 2

Thread: Tab Content Conflict with ASP

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tab Content Conflict with ASP

    1) Script Title: Tab Content Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem:
    I have implemented the TabContent script in my aspx pages and it works fine unless the tab items are generated by asp repeater in the following way. When I click on a tab, it causes the page to be refreshed and this tab will not appear to be 'selected'. Does anyone know how to solve this? Thank you in advance.

    Code:
     
    <ul id="maintab" class="shadetabs">
         <asp:repeater ID="rptFolio" runat="server">
                         <ItemTemplate>
                            <li>
                               <asp:linkbutton  ID="lnkFolio" runat="server" Oncommand="lnkFolio_OnCommand" />
                            </li>
                         </ItemTemplate>
          </asp:repeater></ul>
    The code generated is the following:
    Code:
    <ul id="maintab" class="shadetabs">
    
       <li>
           <a id="rptFolio_ctl00_lnkFolio" href="javascript:__doPostBack('rptFolio$ctl00$lnkFolio','')">STRATEGIQUE</a>
       </li>
                         
        <li>
           <a id="rptFolio_ctl01_lnkFolio" href="javascript:__doPostBack('rptFolio$ctl01$lnkFolio','')">McConnell</a>
        </li>
    
    </ul>
    Here is a screenshot of the tab misbehaving. As I click on it, it loads the right content, but the actual tab is not highlighted.

    http://img340.imageshack.us/my.php?i...problemvs3.png

  2. #2
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No one has a clue on how to solve this issue? Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •