tabcontainer

Confirmation on switching between tabs

倖福魔咒の 提交于 2021-01-28 05:40:49
问题 I have two tabitems. User will enter some data and save it on the first tab. The second tab lists the saved data. What I need is when the user select the second tab before saving data in first tab a confirmation message box with Yes, No and Cancel should be shown. If the user clicks Yes button the data should be saved and go to the second tab. If he hits No, the data need not to be saved and finally if Cancel is hit the tab will retain with all entered data. How can i make this? 回答1: To keep

Ajaxcontroltoolkit 15.1.2 Tabcontainer problems

自闭症网瘾萝莉.ら 提交于 2019-12-25 13:16:07
问题 I've just upgraded a legacy web application from .NET 3.5 to .NET 4.5. The application extensively used the AjaxControlToolkit . Since a new version is available from May 2015 , I also upgrade it. I received several errors so I tried to create an empty project from scratch, adding the AjaxControlToolkit through Nuget, and it seems the problem is caused by the TabContainer control. I receive the errors shown in the images below: SCRIPT1028: Expected identifier, string or number 0x800a139e -

ASP.NET Maintaining ActiveTabIndex on Postback within TabContainer

て烟熏妆下的殇ゞ 提交于 2019-12-24 20:17:46
问题 This probably has been asked many times before but I was wondering how to maintain the ActiveTabIndex of an AjaxControlToolKit TabContainer. The only way I can think of achieving such a thing is to store the ActiveTabIndex in the session and checking for this on postback. Are there any other solutions to solve this problem? 回答1: Most likely this answers your question. Such things belong into the ViewState of the Page when their not already saved there. EDIT: On the other hand: i've tested it

How to change Dojo TabContainer behaviour to simply open an external link instead of showing a ContentPane?

ぐ巨炮叔叔 提交于 2019-12-23 12:32:39
问题 I am working with a TabContainer having several different ContentPane children. Each of them is equipped with a href param to fetch external AJAX content shown when a tab is being selected: dojo.addOnLoad(function() { var tc_nav = new dijit.layout.TabContainer({ style: 'width: 98%;', doLayout: false }, 'tc_nav'); var cp1 = new dijit.layout.ContentPane({ title: 'Test 1', href: 'ajax?test1', style: 'padding: 10px;', selected: true }); dojo.connect(cp1, 'onShow', function() { cp1.refresh(); });

Auto Post back property not working with tab container

淺唱寂寞╮ 提交于 2019-12-20 04:29:08
问题 I am applying globalization on my hotel management system web portal and I am stuck with an issue.My issue is that I have a drop down list of two languages English and Spanish and I set autopostback="true" so from drop down I select spanish and my web page successfully convert english language to spanish by calling the method below protected override void InitializeCulture() { if (Request.Form["ctl00$contentplaceholder1$language_drp"] != null) { UICulture = Request.Form["ctl00

How do I dynamically show and hide an entire TabContainer using DOJO?

自作多情 提交于 2019-12-19 02:27:37
问题 DOJO seems to have some quirks here. I specifically need to have the TabContainer hidden when the page loads, but then become visible after the user clicks a button. The first thing I tried is setting style.display = "none" to start, and then setting style.display = "block" on the click event. Unfortunately, this only partially works- the page will render an invisible box in the right location/dimensions, but not render the actual contents. The box's contents only get rendered when triggered

How to select a tab from TabCointainer (AjaxToolKit)

北战南征 提交于 2019-12-13 14:41:31
问题 How can I select a tab programmatically of a TabContainer? and also how can I get the selected Tab? 回答1: Here is a complete list of TabContainer 's properties taken from here: TabContainer Properties ActiveTabChanged (Event) - Fired on the server side when a tab is changed after a postback OnClientActiveTabChanged - The name of a javascript function to attach to the client-side tabChanged event CssClass - A css class override used to define a custom look and feel for the tabs. See the Tabs

Ajax TabContainerTabPanels Break postbacks

佐手、 提交于 2019-12-13 05:24:41
问题 Hey guys check this out ... <asp:TabContainer ID="jkhgjkgh" runat="server"> <asp:TabPanel ID="jkkljhgh" runat="server" HeaderText="sdkl;fgjl;kgjdf"> <ContentTemplate> <asp:Button ID="jhgkjgh" runat="server" Text="Button" onclick="Button1_Click" /> </ContentTemplate> </asp:TabPanel> <asp:TabPanel ID="jkgh" runat="server" HeaderText="gjdkl;gjdf;g" Visible="false"> <ContentTemplate> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dropDownSelect">

ASP.NET - Ajax Control Toolkit - TabContainer always hidden

我与影子孤独终老i 提交于 2019-12-12 16:13:16
问题 I used the following code to add TabContainer to page <asp:TabContainer ID="TabContainer1" runat="server"> <asp:TabPanel runat="server" HeaderText="tab one" ID="TabPanel0"> <ContentTemplate> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </ContentTemplate> </asp:TabPanel> <asp:TabPanel runat="server" HeaderText="tab two" ID="TabPanel1"> <ContentTemplate> <asp:Button ID="Button1" runat="server" Text="Button" /> </ContentTemplate> </asp:TabPanel> </asp:TabContainer> but when the page

AJAX Tabcontainer inside formview not inserting values

谁都会走 提交于 2019-12-12 10:03:44
问题 I have a TabContainer inside a data bound FormView (to present the information by category ex: Client Bio data, health history, financial details...). The Update and Insert of the formView doesn't work (posting NULL values to the database) - I guess the FormView cannot find the TextBoxes inside the tab container's tab panels. Some of the forums say that it's because of the TabContainer's implementation (by design) of "INamingContainer", and a hack is to take control of the TabContainer's