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?:afrog: :sick:
Quote:
<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
Quote:
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
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.
Re: Problem with Jquery tab + Gridview asp.net
wilang,
Can you provide a link to the jQuery Tab control that you are using?
Gary