javascript problem on ASPx Page Control

Posted by mahfuz on Stack Overflow See other posts from Stack Overflow or by mahfuz
Published on 2010-05-20T08:22:24Z Indexed on 2010/05/20 12:50 UTC
Read the original article Hit count: 313

Filed under:
|

my ASPx Page Control have four itmes. Each tab item are individual usercontrol and they have javascript method.*But always tab item1 index=0 works well*,rest of item javascript don't work.But individually they work well ,problem arise when i put them in ASPx Page Control.*when i click rest of tab items javascript function Tab item1 index=0 ascx* page always load . server side event C# code works well for all tab items.....How to solve this problem .....What's the problem is?

i use devespress tool .....

<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 first ASPx Page Control item works well.but rest of them create problem.i need to call javascript all of them but calling javascript from others create problem ,they show me bellow error Microsoft JScript runtime error: 'this.GetStateInput().value' is null or not an object

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript