I'm currently working on a GIS web application using C# ASP.net.
Within my project, I have an Ajax TabContainer that houses multiple TabPanels containing various elements like a map window and scale bar from the ESRI WebAdf toolkit.
Below is a simplified version of the table structure...
<table id="MainTable>
<tr>
<td>
<ajax:TabContainer runat="server" ActiveTabIndex="0" id="TabContainer" CssClass="ajax__tab_xp">
<ajax:TabPanel runat="server" HeaderText="Online Mapping Service" ID="TabPanel1">
</ajax:TabPanel>
<ajax:TabPanel ID="TabPanel2" runat="server" HeaderText="Postcode">
</ajax:TabPanel>
<ajax:TabPanel ID="TabPanel3" runat="server" HeaderText="Coordinates">
<ContentTemplate>
</ajax:TabPanel>
</ajax:TabContainer>
</td>
</tr>
</table>
After a postback event at runtime, the Tabcontainer intermittently disappears. This issue occurs across different browsers.
Attempts to resolve this include...
- Setting Z-Index with Relative positioning for the TabContainer
Incorporating a JQuery script to 'show' the TabContainer...
<script type="text/javascript" language="javascript"> $(document).ready(function() { $("#TabContainer").show(); }); </script>
Is there C# code that can be added in the code behind similar to the following?...
Public void page_Load(object sender, EventArgs e)
{
TabContainer.show()
}
As someone relatively new to programming, I am striving to find a solution to always display or keep the TabContainer on top.
Thank you