Link to home
Start Free TrialLog in
Avatar of Ed
EdFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Set Tab Index on Gridviw Linkbutton Click

Hi

I have a gridview hyperlink field whci sets the ID in a quesrystring.

Rather than navigate to a new page I want it to stay on the same page but just display a different ajax tab.

TabContainer1.ActiveTab = TabContainer1.Tabs(5)

This code sets the querystring correctly.......

<asp:TemplateField>
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink1" runat="server" 
                                    NavigateUrl='<%# Eval("UserID", "RegisteredUsers.aspx?id={0}") %>' 
                        Text="More Details"></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>

Open in new window


All I want to do is now display the different tab.

How can I access the Hyperlink1 click event programatically so I can set this everytime somone clicks on the hyperlink.

TabContainer1.ActiveTab = TabContainer1.Tabs(5)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ed

ASKER

Perfect solution, thanks.