TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
rachayita jaiswal
NA
217
107.4k
Tab Index in ASP.Net
Aug 27 2013 7:51 AM
Hi, I have created tab container with two panels -
<asp:TabContainer ID="TabContainer1" runat="server" OnActiveTabChanged="TabContainer1_OnActiveTabChanged">
<asp:TabPanel ID="tab1" runat="server" HeaderText="Assets" TabIndex="1">
<ContentTemplate>
<asp:Panel ID="pnl_assets" runat="server">
<table id="tbl_assets" runat="server" width="1200px" height="200px" align="center">
<tr>
<td>
<asp:ContentPlaceHolder id="cph_assets" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Users" TabIndex="2">
<ContentTemplate>
<asp:Panel ID="pnl_users" runat="server">
<table id="tbl_users" runat="server" width="1200px" height="200px" align="center">
<tr>
<td>
<asp:ContentPlaceHolder id="cph_users" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
First tab - Assets
Second tab - Users
when i am clicking on second tab, my data is not coming.
Code behind is -
protected void TabContainer1_OnActiveTabChanged(object sender, EventArgs e)
{
if (TabContainer1.ActiveTabIndex == 2)
{
Response.Redirect("~/Users/ViewUsers.aspx");
}
}
Tell me how to get this?
Reply
Answers (
1
)
gridview
Modalpopupextender in asp.net