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 : 47
    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