Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Response.Redirect and keeping tabcontainer on active tab

$
0
0

My tabcontainer needs to stay on the active tab when I have each submit going through the response.redirect

How can I achieve this? I need that response.redirect there because it will show what has been added in the main tab container.

<asp:TabContainer runat="server" ActiveTabIndex="0" Height="200px"
Width="175px" ScrollBars="Auto" EnableTheming="True" Font-
Underline="False" ID="TabContainer2" EnableViewState="False"
Style="float:right; padding-left: 110px; margin-bottom: 340px;"
OnActiveTabChanged="TabContainer1_ActiveTabChanged"><asp:TabPanel runat="server" HeaderText="Add to Product" ID="tab10">


Protected Sub TabContainer1_ActiveTabChanged(ByVal sender As Object,
ByVal e As EventArgs)
        ViewState("ActiveTabIdx") = TabContainer1.ActiveTabIndex
    End Sub

Protected Sub SubmitCompanies_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles SubmitCompanies.Click
*****there is more code here but for this question, it's not necessary so it has been omitted*****
        Response.Redirect(Request.RawUrl)
        ViewState("ActiveTabIdx") = TabContainer1.ActiveTabIndex

Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>