Solved

Ajax tabcontainer and Linkbutton question

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now