IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

ASP.NET Discussion :

A control is already associated with the element


Sujet :

ASP.NET

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2010
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2010
    Messages : 3
    Par défaut A control is already associated with the element
    Bonjour,

    Je développe un site Web utilisant ASP.NET, Ajax, Telerik.
    Cependant, la version actuelle donne des erreurs javascript.
    Value must not be null for Controls and Behaviors
    A control is already associated with the element
    Dans une version antérieure, ces erreurs n'étaient pas présentes. Cependant, quand je recompile cette version, l'erreur est maintenant présente.
    Serait il possible d'avoir des idées?

    Merci de m'aider.

  2. #2
    Membre émérite Avatar de kheironn
    Homme Profil pro
    Chef de projets technique C# / MVC / .Net
    Inscrit en
    Février 2007
    Messages
    822
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pyrénées Atlantiques (Aquitaine)

    Informations professionnelles :
    Activité : Chef de projets technique C# / MVC / .Net
    Secteur : Conseil

    Informations forums :
    Inscription : Février 2007
    Messages : 822
    Par défaut
    Bonjour,
    As-tu identifié où se trouve ton erreur ?
    Si oui, un extrait de code pourrait aider pour réfléchir au problème.

  3. #3
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2010
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2010
    Messages : 3
    Par défaut Exemple
    Bonjour,
    Voila un exemple
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    <%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="ManageProject_Default" %>
    <%@ MasterType VirtualPath="~/MasterPage.master" %>
     
    <%@ Register Src="~/UserControls/Project/GridProject.ascx" TagName="gridProject" TagPrefix="uc" %>
    <%@ Register Src="~/UserControls/Project/Summary.ascx" TagName="Summary" TagPrefix="uc" %>
    <%@ Register Src="~/UserControls/Project/EditProject.ascx" TagName="Edit" TagPrefix="uc" %>
    <%@ Register Src="~/UserControls/Project/Team.ascx" TagName="Team" TagPrefix="uc" %>
    <%@ Register Src="~/UserControls/Project/Value.ascx" TagName="Value" TagPrefix="uc" %>
    <%@ Register Src="~/UserControls/Project/StatisticsProject.ascx" TagName="Statistics" TagPrefix="uc" %>
     
     
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <telerik:RadAjaxManager runat="server" ID="AjaxManagerProject">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="MultiPageProject">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="MultiPageProject" LoadingPanelID="loadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="RadTabProject" />
                        <telerik:AjaxUpdatedControl ControlID="pnlGrid" />
                        <telerik:AjaxUpdatedControl ControlID="RadMultiPageProjects" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadTabProject">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="MultiPageProject" LoadingPanelID="loadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="RadTabProject" />
                        <telerik:AjaxUpdatedControl ControlID="pnlGrid" />
                        <telerik:AjaxUpdatedControl ControlID="RadMultiPageProjects" />
                    </UpdatedControls>
                </telerik:AjaxSetting>                
            </AjaxSettings>
        </telerik:RadAjaxManager>
     
        <telerik:RadAjaxLoadingPanel runat="server" ID="loadingPanel1" Transparency="0" Width="493px" Height="200px">
            <asp:Image runat="server" ID="imgLoadingPanel" ImageUrl="" Width="130px" Height="60px" />
        </telerik:RadAjaxLoadingPanel>
                 <telerik:RadTabStrip ID="RadTabStripProjects" MultiPageID="RadMultiPageProjects" runat="server" Visible="False" EnableEmbeddedSkins="False"
                Width="100%" SelectedIndex="1" OnTabClick="RadTabStripProjects_TabClick">
                    <Tabs>
                        <telerik:RadTab Width="100px" runat="server" Text="All Projects"  Value="0"/>
                        <telerik:RadTab Width="100px" runat="server" Text="My Projects" Value="1" />
                    </Tabs>
                </telerik:RadTabStrip>   
    <div class="left_frame" style="width:100%; height:100%">
     
        <div class="left_frame_middle">   
            <asp:Panel runat="server" ID="pnlGrid">
              <uc:GridProject runat="server" ID="ucGridProject" OnUpdated="ucGridProject_Updated"></uc:GridProject>
            </asp:Panel>    
        </div>
     
        <div class="left_frame_top_left"></div>
        <div class="left_frame_top_middle"><div></div></div>
        <div class="left_frame_top_right"><div></div></div>
        <div class="left_frame_left"><div></div></div>
        <div class="left_frame_right"><div></div></div>
        <div class="left_frame_bottom_left"><div></div></div>
        <div class="left_frame_bottom_middle"><div></div></div>
        <div class="left_frame_bottom_right"><div></div></div>
     
    </div>
    <!-- Mise en forme -->
     
    </asp:Content>
     
     
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
     
    <div class="right_frame" style="width:100%; height:100%">
        <div class="right_frame_middle">
     
         <telerik:RadMultiPage runat="server" ID="MultiPageProject" Width="100%" SelectedIndex="0">
            <telerik:RadPageView runat="server" ID="PageViewSummary">
                <uc:Summary runat="server" ID="ucSummary" />
            </telerik:RadPageView>
     
         </telerik:RadMultiPage>
     
    <!-- Mise en forme -->      
        </div>
     
        <div class="right_frame_top_left"></div>
        <div class="right_frame_top_middle"><div></div></div>
        <div class="right_frame_top_right"><div></div></div>
        <div class="right_frame_left"><div></div></div>
        <div class="right_frame_right"><div></div></div>
        <div class="right_frame_bottom_left"><div></div></div>
        <div class="right_frame_bottom_middle"><div></div></div>
        <div class="right_frame_bottom_right"><div></div></div>
     
    </div>
    <!-- Mise en forme -->
     
    <div style="position:absolute;top:0px; left:390px">
        <telerik:RadTabStrip runat="server" ID="RadTabProject" EnableEmbeddedSkins="false"
         MultiPageID="MultiPageProject" Width="100%" SelectedIndex="0" OnTabClick="RadTabProject_TabClick">
            <Tabs>
                <telerik:RadTab Width="70px" runat="server" Text="general.summary" PageViewID="PageViewSummary" Value="0"></telerik:RadTab>
                <telerik:RadTab Width="60px" runat="server" Text="general.edit" PageViewID="PageViewEdit" Value="1"></telerik:RadTab>
                <telerik:RadTab Width="60px" runat="server" Text="general.team" PageViewID="PageViewTeam" Value="2"></telerik:RadTab>
                <telerik:RadTab Width="60px" runat="server" Text="general.value" PageViewID="PageViewValue" Value="3"></telerik:RadTab>
                <telerik:RadTab Width="80px" runat="server" Text="general.statistics" PageViewID="PageViewStatistics" value="4"></telerik:RadTab>
            </Tabs>
         </telerik:RadTabStrip>
    </div>    
     
    </asp:Content>
    Merci

  4. #4
    Membre confirmé Avatar de Morad ISSOULGHANE
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : Maroc

    Informations forums :
    Inscription : Juin 2009
    Messages : 98
    Par défaut
    Ça a planté lorsque tu as mis a jour Telerik !!!

  5. #5
    Expert confirmé
    Avatar de Immobilis
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Mars 2004
    Messages
    6 559
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Mars 2004
    Messages : 6 559
    Par défaut
    Salut,
    Citation Envoyé par oliver254 Voir le message
    Bonjour,
    Voila un exemple
    C'est gentil mais on ne peut pas débuguer à ta place. Tu dois tout de même en savoir un peu plus sur l'origine de ton erreur. Le message d'erreur devrait t'indiquer un numéro de ligne. Utilise le mode "Debug" et execute ton code pas à pas pour savoir où ça plante.

    A+
    "Winter is coming" (ma nouvelle page d'accueil)

  6. #6
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2010
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2010
    Messages : 3
    Par défaut
    Bonjour,
    Malheuresement, c'est une erreur juste au niveau du javascript. J'ai déjà chercher l'erreur en mode Debug. Mais le code fonctionne correctement.

    Telerik, j'utilise la même version.

  7. #7
    Expert confirmé
    Avatar de Immobilis
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Mars 2004
    Messages
    6 559
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Mars 2004
    Messages : 6 559
    Par défaut
    Citation Envoyé par oliver254 Voir le message
    Malheuresement, c'est une erreur juste au niveau du javascript. J'ai déjà chercher l'erreur en mode Debug. Mais le code fonctionne correctement.
    Tous les navigateurs inclus un debuger de javascript (IE Developper Toolbar, FireBug). Tu devrais essayer.
    "Winter is coming" (ma nouvelle page d'accueil)

Discussions similaires

  1. Réponses: 2
    Dernier message: 10/07/2012, 15h09
  2. Réponses: 2
    Dernier message: 10/06/2009, 22h28
  3. different object with the same identifier was already associated with the session
    Par lextaz33 dans le forum Développement Web en Java
    Réponses: 6
    Dernier message: 02/03/2009, 14h36
  4. Réponses: 1
    Dernier message: 12/01/2009, 17h52
  5. Réponses: 1
    Dernier message: 27/10/2008, 17h08

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo