Solved

Ajax tabcontainer and Linkbutton question

Posted on 2010-09-21
1
505 Views
Last Modified: 2012-06-21
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") %>'
                       runat="server">Update</asp:LinkButton>
 </td>

I may need a javascipt function thanks
0
Comment
Question by:zachvaldez
1 Comment
 
LVL 26

Accepted Solution

by:
Alan Warren earned 250 total points
ID: 33749079
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


hth


Alan
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question