Results 1 to 3 of 3

Thread: Problem with Jquery tab + Gridview asp.net

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Location
    Jakarta,Indonesia
    Posts
    100

    Red face Problem with Jquery tab + Gridview asp.net

    Hi all, i have a problem with some Jquery tab with gridview in asp.net.

    I have 1 form with 3 tab ( tab 1,tab 2 ,tab 3) . each tab have 1 grid view.
    each gridview have paging.
    the problem is,when i change the page in gridview in tab 2 or tab 3 . my tab change to tab 1. so i decided to change tab from the code in ASP.NET.
    but i don't know how to access <a href="#slide-two" runat="server" id="Link2">Slide Two</a> from asp.net code.

    Manually ,i just klik the link in below to change tab. if i clik Slide Two,the tab will change to tab 2.
    what should i do,if i want to access from asp.net code?


    <li class="on"><a href="#slide-one">Slide One</a></li>
    <li><a href="#slide-two">Slide Two</a></li>
    <li><a href="#slide-three">Slide Three</a></li>
    Koding in asp.net
    Private Sub GVListDev_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GVListDev.PageIndexChanging
    GVListDev.PageIndex = e.NewPageIndex
    RetrievelistDevelopment()
    what should i add in here--->
    End Sub

  2. #2
    Frenzied Member brin351's Avatar
    Join Date
    Mar 2007
    Location
    Land Down Under
    Posts
    1,293

    Re: Problem with Jquery tab + Gridview asp.net

    It looks to me that the <li class="on"> element effects the tab to be displayed as the selected one. You could make the <li> element server controls (runat=server) and add/remove the class=on attribute in code.
    The problem with computers is their nature is pure logic. Just once I'd like my computer to do something deluded.

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

    Re: Problem with Jquery tab + Gridview asp.net

    wilang,

    Can you provide a link to the jQuery Tab control that you are using?

    Gary

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