选项卡控件项包含单独的页面

发布于 2024-09-02 05:33:06 字数 4009 浏览 4 评论 0原文

我的选项卡控件项包含三个不同的页面。单击 tabitem,它们是可见的,但是当想要在页面项上执行 javascript 事件时,就会出现问题。javascript 仅适用于第一个选项卡控件项,其余的则不起作用。显示一下以下错误。 Microsoft JScript 运行时错误:'this.GetStateInput().value' 为 null 或不是对象

tabcontrol

**tab item1 contain page1
  tab item2 contain page2
  tab item3 contain page3**

我在 page1 控件上编写 javascript,它运行良好,但其余页面 javascript显示上述错误消息。我从事 devexpress 控制工作

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCCharge.ascx.cs" Inherits="WebCore.UserControls.ChargeSettings.UCCharge" %>
<%@ Register assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dxtc" %>
<%@ Register assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxClasses" tagprefix="dxw" %>
<%@ Register src="UCConfig_Charge_Company_Wise.ascx" tagname="UCConfig_Charge_Company_Wise" tagprefix="uc1" %>
<%@ Register src="UCConfig_Charge_Depository_Company_Wise.ascx" tagname="UCConfig_Charge_Depository_Company_Wise" tagprefix="uc2" %>
<%@ Register src="UCconfig_charge_operation_mode.ascx" tagname="UCconfig_charge_operation_mode" tagprefix="uc3" %>
<%@ Register src="../InvestorAccount/UCconfig_Investor_Account_Wise_Charge.ascx" tagname="UCConfig_Investor_Account_Wise_Charge" tagprefix="uc4" %>

<table>
    <tr>
        <td>
            <dxtc:ASPxPageControl Width="500px" ID="ASPxPageControl1"  runat="server" ActiveTabIndex="0"
            EnableCallbackCompression="True" EnableHierarchyRecreation="True" 
                 AutoPostBack="True">
                <TabPages>
                    <dxtc:TabPage Text="Charge Company">
                        <ContentCollection>
                            <dxw:ContentControl ID="ContentControl1" runat="server">
                                <uc1:UCConfig_Charge_Company_Wise ID="UCConfig_Charge_Company_Wise" runat="server" />
                            </dxw:ContentControl>
                        </ContentCollection>
                    </dxtc:TabPage>
                    <dxtc:TabPage Text="Charge Depository Company">
                        <ContentCollection>
                            <dxw:ContentControl ID="ContentControl3" runat="server">
                                <uc2:UCConfig_Charge_Depository_Company_Wise ID="UCConfig_Charge_Depository_Company_Wise"
                                    runat="server" />
                            </dxw:ContentControl>
                        </ContentCollection>
                    </dxtc:TabPage>

   <dxtc:TabPage Text="Investor Charge ">
                        <ContentCollection>
                            <dxw:ContentControl ID="ContentControl5" runat="server">
                                <uc4:UCConfig_Investor_Account_Wise_Charge ID="UCConfig_Investor_Account_Wise_Charge"
                                    runat="server" />
                            </dxw:ContentControl>
                        </ContentCollection>
                    </dxtc:TabPage>

                     <dxtc:TabPage Text="Charge Operation Mode ">
                        <ContentCollection>
                            <dxw:ContentControl ID="ContentControl4" runat="server">
                                <uc3:UCconfig_charge_operation_mode ID="UCconfig_charge_operation_mode"
                                    runat="server" />
                            </dxw:ContentControl>
                        </ContentCollection>
                    </dxtc:TabPage>




                </TabPages>
            </dxtc:ASPxPageControl>
        </td>
    </tr>
</table>

My tab control items contain three different pages.Clicking on tabitem ,they are visible,but when want to perform javascript event on page item then problem arise.javascript well works for only first tab control item,rest of them are not work.Show me the bellow error.
Microsoft JScript runtime error: 'this.GetStateInput().value' is null or not an objec

tabcontrol

**tab item1 contain page1
  tab item2 contain page2
  tab item3 contain page3**

i write javascript on page1 control,it's work well but rest of pages javascript show the above error message. i work on devexpress control

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCCharge.ascx.cs" Inherits="WebCore.UserControls.ChargeSettings.UCCharge" %>
<%@ Register assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dxtc" %>
<%@ Register assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxClasses" tagprefix="dxw" %>
<%@ Register src="UCConfig_Charge_Company_Wise.ascx" tagname="UCConfig_Charge_Company_Wise" tagprefix="uc1" %>
<%@ Register src="UCConfig_Charge_Depository_Company_Wise.ascx" tagname="UCConfig_Charge_Depository_Company_Wise" tagprefix="uc2" %>
<%@ Register src="UCconfig_charge_operation_mode.ascx" tagname="UCconfig_charge_operation_mode" tagprefix="uc3" %>
<%@ Register src="../InvestorAccount/UCconfig_Investor_Account_Wise_Charge.ascx" tagname="UCConfig_Investor_Account_Wise_Charge" tagprefix="uc4" %>

<table>
    <tr>
        <td>
            <dxtc:ASPxPageControl Width="500px" ID="ASPxPageControl1"  runat="server" ActiveTabIndex="0"
            EnableCallbackCompression="True" EnableHierarchyRecreation="True" 
                 AutoPostBack="True">
                <TabPages>
                    <dxtc:TabPage Text="Charge Company">
                        <ContentCollection>
                            <dxw:ContentControl ID="ContentControl1" runat="server">
                                <uc1:UCConfig_Charge_Company_Wise ID="UCConfig_Charge_Company_Wise" runat="server" />
                            </dxw:ContentControl>
                        </ContentCollection>
                    </dxtc:TabPage>
                    <dxtc:TabPage Text="Charge Depository Company">
                        <ContentCollection>
                            <dxw:ContentControl ID="ContentControl3" runat="server">
                                <uc2:UCConfig_Charge_Depository_Company_Wise ID="UCConfig_Charge_Depository_Company_Wise"
                                    runat="server" />
                            </dxw:ContentControl>
                        </ContentCollection>
                    </dxtc:TabPage>

   <dxtc:TabPage Text="Investor Charge ">
                        <ContentCollection>
                            <dxw:ContentControl ID="ContentControl5" runat="server">
                                <uc4:UCConfig_Investor_Account_Wise_Charge ID="UCConfig_Investor_Account_Wise_Charge"
                                    runat="server" />
                            </dxw:ContentControl>
                        </ContentCollection>
                    </dxtc:TabPage>

                     <dxtc:TabPage Text="Charge Operation Mode ">
                        <ContentCollection>
                            <dxw:ContentControl ID="ContentControl4" runat="server">
                                <uc3:UCconfig_charge_operation_mode ID="UCconfig_charge_operation_mode"
                                    runat="server" />
                            </dxw:ContentControl>
                        </ContentCollection>
                    </dxtc:TabPage>




                </TabPages>
            </dxtc:ASPxPageControl>
        </td>
    </tr>
</table>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

樱&纷飞 2024-09-09 05:33:06

我读到用户收到此错误的支持问题,在他的情况下,这是因为他在获取 DX 控件的值而不是 GetValue() (myTextBox.GetValue()) 客户端时使用值 (myTextBox.value) DX提供的方法。您的代码中也会发生同样的事情吗?

I read on a Support issue of a user getting this error, in his case it was because he was using value (myTextBox.value) when getting the value of a DX Control instead of the GetValue() (myTextBox.GetValue()) client method DX provides. Could this be the same thing happening in your code as well?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文