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 :

AutoCompleteExtender et UpdatePanel


Sujet :

ASP.NET

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Février 2009
    Messages
    31
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Février 2009
    Messages : 31
    Points : 30
    Points
    30
    Par défaut AutoCompleteExtender et UpdatePanel
    Bonjour,

    J'aimerai utiliser un AutoCompleteExtender dans un UpdatePanel, Après quelque recherche j'ai trouver la solution a ce problème. Il était situé dans un fichier JS d'AjaxControlToolKit.

    J'ai appliquer le correctif suivant http://www.eggheadcafe.com/aspnet/ho...it-autoco.aspx

    Après la génération du nouveau fichier AjaxControlToolKit.dll, je l'ai mis dans mon projet, supprimer toutes les fonctions AjaxControlToolKit de visualStudio et je les ai réimporter grace au nouveau AjaxControlToolKit.dll.

    Mais cela ne fonctionne toujours pas. Quelqu'un a t-il déja eu ce problème ?

    (Mon AutoCompleteExtender fonctionne endehors de l'UpdatePanel).


    Merci d'avance.

    eGm


    Code de L'update Panel et de l'AutoCompleteExtender

    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
    <asp:UpdatePanel ID="Panel_Rech" runat="server" Visible="true">
     
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="rech_simple" />
                <asp:AsyncPostBackTrigger ControlID="rech_avanced" />
                <asp:PostBackTrigger ControlID="sem_ref" />
            </Triggers>
     
            <ContentTemplate>
                Type de Recherche : <br />
                <asp:RadioButton ID="rech_simple" runat="server" Checked="true" GroupName="choix_rech" Text="Simple" OnCheckedChanged="Show_Complex" AutoPostBack="true" />
                <asp:RadioButton ID="rech_avanced" runat="server" GroupName="choix_rech" Text="Avancée" OnCheckedChanged="Show_Complex" AutoPostBack="true" />
     
     
     
                <asp:Panel ID="Panel_Rech_Simple" runat="server" Visible="true" >
     
                    <asp:Label ID="ref" runat="server" Text="Reférence" ></asp:Label><asp:TextBox ID="sem_ref" runat="server" AutoPostBack="true" >
                    </asp:TextBox><img id="processing" style="visibility:hidden" src="../App_Themes/Style/Img/Ajax/ajaxloader.gif" alt="Loader.gif" />
                    <cc1:AutoCompleteExtender              
                            ID="AutoCompleteExtender1"
                            runat="server"
                            TargetControlID="sem_ref"
                            ServicePath ="~/App_Code/AjaxServices.cs" 
                            ServiceMethod="GetRefs"
                            MinimumPrefixLength="2"
                            EnableCaching="true"
                            CompletionSetCount="25"
                            onclientpopulating="ShowIcon"
                            onclientpopulated="ShowIcon"/>
     
                </asp:Panel>   
     
                <asp:GridView ID="GridView1" runat="server" >
                </asp:GridView>
     
            </ContentTemplate>
     
     
            </asp:UpdatePanel>

  2. #2
    Expert éminent
    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
    Points : 9 506
    Points
    9 506
    Par défaut
    Salut,
    Citation Envoyé par eGmBe Voir le message
    Mon AutoCompleteExtender fonctionne endehors de l'UpdatePanel
    Ca fonctionne ou pas? Si ça fonctionne en dehors laisse le dehors.

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

  3. #3
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Février 2009
    Messages
    31
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Février 2009
    Messages : 31
    Points : 30
    Points
    30
    Par défaut
    Citation Envoyé par Immobilis Voir le message
    Salut,
    Ca fonctionne ou pas? Si ça fonctionne en dehors laisse le dehors.

    A+

    ca fonctionne en dehors mais pas dedans

  4. #4
    Expert éminent
    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
    Points : 9 506
    Points
    9 506
    Par défaut
    Ben ne le mets pas dedans
    "Winter is coming" (ma nouvelle page d'accueil)

  5. #5
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Février 2009
    Messages
    31
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Février 2009
    Messages : 31
    Points : 30
    Points
    30
    Par défaut
    Citation Envoyé par Immobilis Voir le message
    Ben ne le mets pas dedans
    bah je pourrais mais j'ai besoin de l'updatepanel pour dynamiser ma page.

  6. #6
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Février 2009
    Messages
    31
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Février 2009
    Messages : 31
    Points : 30
    Points
    30
    Par défaut
    Problème résolut : Mauvais appel de service

  7. #7
    Expert éminent
    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
    Points : 9 506
    Points
    9 506
    Par défaut
    Tu peux mettre ton code corrigé stp?
    "Winter is coming" (ma nouvelle page d'accueil)

  8. #8
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Février 2009
    Messages
    31
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Février 2009
    Messages : 31
    Points : 30
    Points
    30
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    ServicePath ="~/AjaxServices.asmx"
    Voila

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Probleme avec Ajax Toolkit AutoCompleteExtender
    Par Promesses dans le forum ASP.NET
    Réponses: 17
    Dernier message: 18/02/2008, 17h19
  2. [UpdatePanel] comment exclure un bouton du panneau ajax
    Par petitchat dans le forum ASP.NET
    Réponses: 3
    Dernier message: 04/06/2007, 16h46
  3. Réponses: 1
    Dernier message: 21/05/2007, 18h15
  4. [C#][Ajax] WebControl dans un updatepanel
    Par Damien R dans le forum ASP.NET
    Réponses: 6
    Dernier message: 07/12/2006, 09h17

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