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 Ajax Discussion :

Probléme avec ScriptManager


Sujet :

ASP.NET Ajax

  1. #1
    Nouveau membre du Club
    Inscrit en
    Juillet 2009
    Messages
    5
    Détails du profil
    Informations forums :
    Inscription : Juillet 2009
    Messages : 5
    Par défaut Probléme avec ScriptManager
    bonjour,

    je suis entrain de développer une application web, l'hors de la génération du site tout marche bien , aprés avoir tenté d'entrer a une page une exéption et générer comme suit :

    Server Error in '/digicompta' Application.
    The control with ID 'AlwaysVisibleControlExtender' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: The control with ID 'AlwaysVisibleControlExtender' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [InvalidOperationException: The control with ID 'AlwaysVisibleControlExtender' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.]
    System.Web.UI.ExtenderControl.get_ScriptManager() +120453
    System.Web.UI.ExtenderControl.RegisterWithScriptManager() +117
    System.Web.UI.ExtenderControl.OnPreRender(EventArgs e) +20
    AjaxControlToolkit.ExtenderControlBase.OnPreRender(EventArgs e) +32
    System.Web.UI.Control.PreRenderRecursiveInternal() +80
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


    Version Information: Microsoft .NET Framework Version:2.0.50727.4959; ASP.NET Version:2.0.50727.4955
    voici ma page .aspx :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
     
    <%@ Register Src="UserControls/JournalFinancierView.ascx" TagName="JournalFinancierView" TagPrefix="uc3" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="JournalFinancierEditUpdatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
    .....
    merci de m'aider

  2. #2
    Expert confirmé

    Avatar de Philippe Vialatte
    Homme Profil pro
    Architecte technique
    Inscrit en
    Juillet 2004
    Messages
    3 029
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Juillet 2004
    Messages : 3 029
    Par défaut
    Salut,

    sur quelle page as-tu ton controle avec l'id AlwaysVisibleControlExtender ?

    Note, comme tu as une masterpage, il peut être avantageux pour toi d'avoir le ScriptManager dans la masterpage, plutot que dans tes pages utilisant la masterpage

    Mon Blog

    The Cake is still a lie !!!



    Vous voulez contribuer à la rubrique .NET ? Contactez-moi par MP.
    Vous voulez rédiger des articles pour la rubrique .NET ? Voici la procédure à suivre.

  3. #3
    Nouveau membre du Club
    Inscrit en
    Juillet 2009
    Messages
    5
    Détails du profil
    Informations forums :
    Inscription : Juillet 2009
    Messages : 5
    Par défaut toujours le méme probléme
    merci de votre réponse , mais le probléme existe toujours voila le message d'erreur qui s'afiche quand je tente d'entrer a une page :
    Server Error in '/digicompta' Application.
    --------------------------------------------------------------------------------

    The control with ID 'JournalFinancierEditUpdatePanel' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: The control with ID 'JournalFinancierEditUpdatePanel' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [InvalidOperationException: The control with ID 'JournalFinancierEditUpdatePanel' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.]
    System.Web.UI.UpdatePanel.get_ScriptManager() +364901
    System.Web.UI.UpdatePanel.RegisterPanel() +87
    System.Web.UI.UpdatePanel.OnInit(EventArgs e) +19
    System.Web.UI.Control.InitRecursive(Control namingContainer) +333
    System.Web.UI.Control.InitRecursive(Control namingContainer) +210
    System.Web.UI.Control.InitRecursive(Control namingContainer) +210
    System.Web.UI.Control.InitRecursive(Control namingContainer) +210
    System.Web.UI.Control.InitRecursive(Control namingContainer) +210
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.4959; ASP.NET Version:2.0.50727.4955
    merci infiniment d'avoir m'aider

  4. #4
    Membre expérimenté
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2009
    Messages
    229
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2009
    Messages : 229
    Par défaut
    Je pense qu'il faut utiliser le contrôle ToolkitScriptManager (contrôle AjaxToolkitControl) au lieu de ScriptManager.
    A tester !!!

Discussions similaires

  1. Problème avec ScriptManager.RegisterStartupScript et ascx
    Par sylvebarbe78 dans le forum ASP.NET
    Réponses: 1
    Dernier message: 07/04/2010, 10h16
  2. VC++ Direct3D8, problème avec LPD3DXFONT et LPD3DTEXTURE8
    Par Magus (Dave) dans le forum DirectX
    Réponses: 3
    Dernier message: 03/08/2002, 11h10
  3. Problème avec le type 'Corba::Any_out'
    Par Steven dans le forum CORBA
    Réponses: 2
    Dernier message: 14/07/2002, 18h48
  4. Problème avec la mémoire virtuelle
    Par Anonymous dans le forum CORBA
    Réponses: 13
    Dernier message: 16/04/2002, 16h10

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