Go Premium for a chance to win a PS4. Enter to Win

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

Ajax tabcontainer and Linkbutton question

Id like to refresh to same page when it reads the the page load.. when the linkbutton is clicked.
Currently it autopostback to teh default tab of teh tabcontainer.

<td align=left width="2%">
                                        <asp:LinkButton ID="btnUpdate" ToolTip="Update this entry"   Visible="true" Style="font: caption;
                                            font-weight: normal;" Font-Underline="true" CommandName="Update" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CounterID") %>'

I may need a javascipt function thanks
1 Solution
Alan WarrenCommented:
Hi zachvaldez,

You can set the ActiveTabIndex on the linkbutton click event.

    Protected Sub btnUpdate_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        Me.YourTabContainerID.ActiveTabIndex = 2 ' Setsfocus to the third TabPanel
    End Sub



Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now