Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
angular translate not working with updatepanel aspx.net


XML
<body class="register-page" ng-app='app'  ng-controller="ctrl" >
    <form id="form1" runat="server" >

        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1"  runat="server">
            <ContentTemplate>
                <br />
                <div id="myDiv" class="register-box" style="width: 385px !important; height: 580px !important;">


                    <div class="register-box-body">
                        <p class="login-box-msg">

                            <br />

                        </p>
                        <div class="xdxd">
                            <div class="cube">
                                <div class="flippety" translate="COMPANYTranslate">
                                    <asp:Image ID="Image_plane" runat="server" OnDataBinding="Image_plane_DataBinding" />
                                    COMPANY | NAME
                                </div>
                                <div class="flop">
                                    <%--  <a href="#"><b>--%>
                                    <asp:Label ID="lbl_company_name" runat="server" Text=""></asp:Label><%--<b></a>--%>
                                </div>
                            </div>
                        </div>
                        <div>

=====================================
angular.module('app', ['pascalprecht.translate', 'ngCookies'])

.config(['$translateProvider', function ($translateProvider) {

// Adding a translation table for the English language
alert('xxxxxxxxxxxxx');
$translateProvider.translations('en_US', {
boxtitleTranslate: 'SwitchBoard',
Posted
Updated 25-Sep-15 2:26am
v2
Comments
phil.o 25-Sep-15 8:07am    
Remember we cannot access your harddrive, screen, nor mind. Guessing is not a viable solution.
Please define your goals, the code you have so far, and the actual problem you are facing. 'Not working' is not a valid issue description, either.
Member 11594902 25-Sep-15 8:27am    
plase help
CHill60 25-Sep-15 8:31am    
What does "not working" mean?
Member 11594902 25-Sep-15 8:33am    
It does not work after updating the page
CHill60 25-Sep-15 8:34am    
You are not helping us to help you.
What does "not work" mean - what happens or doesn't happen?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900