Results 1 to 5 of 5

Thread: [RESOLVED] Ajax tab container click

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2008
    Posts
    474

    Resolved [RESOLVED] Ajax tab container click

    I am using the AJAX tab container. How to capture the click event of the tab,whether client side or server side,,Means suppose when i clikc on tab0,I want to execute the certain Code.

    Just tell me how to handle the click event of the tab?

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Ajax tab container click

    Hey,

    Have a look at the following video:

    http://www.asp.net/learn/ajax-videos/video-156.aspx

    Hope that helps!!

    Gary

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Ajax tab container click

    You have the OnClientActiveTabChanged property of the tab. Handle it and you can run some JS each time a tab is clicked. Use it like so:

    OnClientActiveTabChanged="tabClicked"

    And your JS:

    Code:
    function tabClicked(sender, args){
                    var index = sender.get_activeTabIndex();
                    switch(index)
                    {
                        case 1: 
                            break;
    
                    }
                }

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2008
    Posts
    474

    Re: Ajax tab container click

    Thx its done!!!!!!!!!!

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] Ajax tab container click

    No problem

Posting Permissions

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



Click Here to Expand Forum to Full Width