Solved

Ajax tabcontainer and Linkbutton question

Posted on 2010-09-21
1
503 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

770 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