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

Page .asp renvoi une erreur après 500 lignes


Sujet :

ASP

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : Suisse

    Informations forums :
    Inscription : Août 2009
    Messages : 12
    Points : 6
    Points
    6
    Par défaut Page .asp renvoi une erreur après 500 lignes
    Bonjour,

    J'ai créé plusieurs pages .asp pour extraire des données depuis des bases Access.

    Je connaissais la limitation à 1000 lignes (au dessus cela renvoi une page d'erreur)

    Par contre, pour la dernière que j'ai du créer, la page d'erreur m'est renvoyée après 500 lignes seulement... Et elle est paramétrer la même chose que mes autres... Je n'y comprends plus rien !

    Est-ce que quelqu'un à une idée sur la source de ce problème ?

    Merci d'avance de vos réponses.

    Meilleures salutations.

    Hamsterj

  2. #2
    Modérateur
    Avatar de roro06
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    1 480
    Détails du profil
    Informations personnelles :
    Âge : 55
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 480
    Points : 1 978
    Points
    1 978
    Par défaut
    Bonjour

    Je connaissais la limitation à 1000 lignes (au dessus cela renvoi une page d'erreur)
    Pas moi. Quelle est le message d'erreur renvoyé dans ce cas ? N'est-ce pas plutôt un problème de timeout ?

  3. #3
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : Suisse

    Informations forums :
    Inscription : Août 2009
    Messages : 12
    Points : 6
    Points
    6
    Par défaut
    En fait j'ai une page qui s'ouvre "Impossible d'afficher la page", "la page que vous recherchez est actuellement indisponible..." avec les propositions ad hoc.

    Et cette erreure vient immédiatement (plus rapidement que lorsque la page affiche des résultat !)

    Par contre si je mets un critère qui renvoie moins de 500 lignes, elles s'afficheront sans problème.

    Pour les 1000 lignes j'avais trouvé à l'époque une topic qui parlait de cette limitation...

    ???

    Merci beaucoup pour votre aide.

    Hamsterj

  4. #4
    Modérateur
    Avatar de roro06
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    1 480
    Détails du profil
    Informations personnelles :
    Âge : 55
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 480
    Points : 1 978
    Points
    1 978
    Par défaut
    Re

    La solution doit être dans ton code,il faudrait nous le montrer si tu veux qu'on t'aide. Ce n'est a priori pas une question de timeout, puisque la page d'erreur s'affiche plus rapidement.

  5. #5
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : Suisse

    Informations forums :
    Inscription : Août 2009
    Messages : 12
    Points : 6
    Points
    6
    Par défaut
    Re,

    Voici le code de la page qui crée mon tableau (ListeRC étant le mot-clef saisi par l'utilisateur auparavant) :

    Merci d'avance.

    A+

    Hamsterj



    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
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
     
     
    </head>
     
    <%
    Dim DSN_BASE
    DSN_BASE ="Driver={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & Server.MapPath("./Liste téléphonique.mdb")
    Set CONNFavoris = Server.CreateObject("ADODB.Connection")
    CONNFavoris.ConnectionTimeout = 30
    CONNFavoris.CommandTimeout = 30
    CONNFavoris.Open DSN_BASE
    PORTEF=Request("ListeRC")
     
    RequeteSQL = "SELECT [Users].Siglage, [Users].Nom, [Users].Acronyme, [Users].Téléphone, [Users].Natel, [Users].User, [Users].[N° Tiers], [Users].Rôle, [Users].Service, [Users].Succursale, [Users].[E-mail] FROM [Users] WHERE ((([Users].Nom) Like '%" & Request("ListeRC") & "%')) OR ((([Users].Siglage) Like '" & Request("ListeRC") & "')) OR ((([Users].Acronyme) Like '" & Request("ListeRC") & "')) OR ((([Users].Téléphone) Like '" & Request("ListeRC") & "')) OR ((([Users].User) Like '%" & Request("ListeRC") & "%')) OR ((([Users].[N° Tiers]) Like '" & Request("ListeRC") & "')) OR ((([Users].Rôle) Like '%" & Request("ListeRC") & "%')) OR ((([Users].Service) Like '%" & Request("ListeRC") & "%')) OR ((([Users].Succursale) Like '%" & Request("ListeRC") & "%')) ORDER BY [Users].[Flag n° fixe] DESC , [Users].Nom;"
     
     
    Set rs=CONNFavoris.execute(RequeteSQL)
    Set objRecordset = Server.CreateObject("ADODB.Recordset")
    objRecordset.Open RequeteSQL,CONNFavoris
    %>
    <%session.lcid=4108%>
    <html>
     
    <head>
    <title>Liste téléphonique - Résultat</title>
     
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    </head>
     
    <body bgcolor="#FFFFFF" text="#000000"> 
     
    <div style="background-image:url(/images/header-bg.gif); background-repeat:repeat-x; 
    margin-left:10px; border:thin solid #FFFFFF; background-position:30px 21px; 
    font-family:Arial,sans-serif; color:black; font-size:10pt"> 
    <p><a href="/default1.htm"> 
       <img alt="Logo" src="/images/logo_bcne.gif" border="0" width="134" height="120"></a></p> 
    <link rel="stylesheet" type="text/css" href="/images/bcn2.css"> 
     
    <font face="Arial" color="#C0C0C0">
    <h1 align="center" style="text-align: left">
    <font color="#C60018" style="font-size: 11pt"><a href="Liste_téléphonique.asp">
    &lt;&lt;&lt; Retour à la recherche des utilisateurs</a></font></h1>
    <h1 align="center"><font size="5" color="#C0C0C0"><b>Données des utilisateurs 
    </b></font></h1>
     
    <div id='fr'>
    <p align="center"><strong>Résultat pour le critère de recherche suivant : '<%response.write PORTEF%>'&nbsp;&nbsp;
    </strong></p>
     
    <div align="center"><center>
    <table border="0" height="150" bordercolorlight="#000000" bordercolordark="#000000">
      <!-- MSTableType="nolayout" -->
     <tr>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" bordercolor="#C0C0C0" height="1">
     <b>
     <font size="3">Siglage</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" bordercolor="#C0C0C0" height="1">
     <b>
     <font size="3">Nom</font>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" bordercolor="#C0C0C0" height="1">
     <b>
     <font size="3">Acro.</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" bordercolor="#C0C0C0" height="1">
     <b>
     <font size="3">Tél.</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <b>
     <font size="3">Natel/Fax/Tél.</font>&nbsp;</b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <b><font size="3">User</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <b><font size="3">N° Tiers</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <b><font size="3">Rôle</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <b><font size="3">Service</font>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <font size="3"><b>Emplacement</b></font><b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</b></td>
     
    <strong>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left height="1">
     </td>
      </tr>
    <%Do While Not rs.EOF%>
     
      </strong>
     
      <tr>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=rs("Siglage")%>&nbsp;
    </font>
    </td>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><a style="text-decoration: none" target="_blank" href ="file://Photos/<%=rs("User")%>.jpg">
     <font color="#000000"><%=rs("Nom")%>&nbsp</font></a>
    </font>
    </td>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=rs("Acronyme")%>&nbsp;
    </font>
    </td>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=rs("Téléphone")%>&nbsp;
    </font>
    </td>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=rs("Natel")%>&nbsp;
    </font>
    </td>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=rs("User")%>&nbsp;
    </font>
    </td>
     
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px" align="right"><%=rs("N° Tiers")%>&nbsp&nbsp;
    </font>
    </td>
     
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=rs("Rôle")%>&nbsp;
    </font>
    </td>
     
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=rs("Service")%>&nbsp;
    </font>
    </td>
     
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=rs("Succursale")%>&nbsp;
    </font>
    </td>
     
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><a a style="text-decoration: none" href ="mailto:<%=rs("E-mail")%>">
     <font color="#000000">E-mail&nbsp</font></a></a>&nbsp;
    </font>
    </td>
     
    <strong>
     
    <%nbre=nbre+1%>
    <%objRecordset.MoveNext%>
    <%rs.MoveNext%>
    <%Loop%>
    <%set rs=Nothing%>
     
      </table>
    </center></div>
    </div id='fr'>
    </body>
    </html>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    &nbsp;

  6. #6
    Modérateur
    Avatar de roro06
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    1 480
    Détails du profil
    Informations personnelles :
    Âge : 55
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 480
    Points : 1 978
    Points
    1 978
    Par défaut
    Bonjour

    d'abord, dans le code ASP :

    CONNFavoris.ConnectionTimeout = 30
    CONNFavoris.CommandTimeout = 30
    Ces commandes n'ont pas trop d'utilité ici, supprimes-les (ou mets les en commentaires) dans un premier temps pour s'assurer que le problème ne vindrait pas de là.

    Set rs=CONNFavoris.execute(RequeteSQL)
    et
    Set objRecordset = Server.CreateObject("ADODB.Recordset")
    objRecordset.Open RequeteSQL,CONNFavoris
    Ces deux commandes sont redondantes, objRecordset et rs sont la même chose déclarés comme cela.

    Ensuite, dans ton code html
    le shema d'une page html (ou ASP, celui-ci générant une sortie html) est de la sorte :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
      <head>
        <!-- des choses -->
      </head>
      <body>
        <!-- la page proprement dites -->
      </body>
    </html>
    Or dans ton code, il y a plusieurs balises html, plusieurs <head>, un doctype en fin de page ... Pas terrible !

    Je te conseille de corriger ça aussi.

  7. #7
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : Suisse

    Informations forums :
    Inscription : Août 2009
    Messages : 12
    Points : 6
    Points
    6
    Par défaut
    Merci beaucoup roro06 pour ta réponse.

    Désolé, il est vrai que je ne suis pas informaticien du tout, donc le copier/coller fonctionne très fort

    Je vais tester cela lundi et te redis.

    Encore merci et à bientôt.

    Hamsterj

  8. #8
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : Suisse

    Informations forums :
    Inscription : Août 2009
    Messages : 12
    Points : 6
    Points
    6
    Par défaut
    Salut roro06,

    J'ai effectué les corrections selon tes conseils (enfin j'espère ), mais l'erreur arrive toujours pour les résultats de plus de 500 lignes

    Merci à +

    Hamsterj



    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
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Liste téléphonique - Résultat</title>
     
     
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    </head>
    <body>
     
    <%
    Dim DSN_BASE
    DSN_BASE ="Driver={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & Server.MapPath("./Liste téléphonique.mdb")
    Set CONNFavoris = Server.CreateObject("ADODB.Connection")
    CONNFavoris.Open DSN_BASE
     
    RequeteSQL = "SELECT [Users].Siglage, [Users].Nom, [Users].Acronyme, [Users].Téléphone, [Users].Natel, [Users].User, [Users].[N° Tiers], [Users].Rôle, [Users].Service, [Users].Succursale, [Users].[E-mail] FROM [Users] WHERE ((([Users].Nom) Like '%" & Request("ListeRC") & "%')) OR ((([Users].Siglage) Like '" & Request("ListeRC") & "')) OR ((([Users].Acronyme) Like '" & Request("ListeRC") & "')) OR ((([Users].Téléphone) Like '" & Request("ListeRC") & "')) OR ((([Users].User) Like '%" & Request("ListeRC") & "%')) OR ((([Users].[N° Tiers]) Like '" & Request("ListeRC") & "')) OR ((([Users].Rôle) Like '%" & Request("ListeRC") & "%')) OR ((([Users].Service) Like '%" & Request("ListeRC") & "%')) OR ((([Users].Succursale) Like '%" & Request("ListeRC") & "%')) ORDER BY [Users].[Flag n° fixe] DESC , [Users].Nom;"
     
     
    Set objRecordset = Server.CreateObject("ADODB.Recordset")
    objRecordset.Open RequeteSQL,CONNFavoris
    %>
    <%session.lcid=4108%>
     
     
     
     
    <bgcolor="#FFFFFF" text="#000000"> 
     
    <div style="background-image:url(/images/header-bg.gif); background-repeat:repeat-x; 
    margin-left:10px; border:thin solid #FFFFFF; background-position:30px 21px; 
    font-family:Arial,sans-serif; color:black; font-size:10pt"> 
    <p><a href="/default1.htm"> 
       <img alt="Logo" src="/images/logo_bcne.gif" border="0" width="134" height="120"></a></p> 
    <link rel="stylesheet" type="text/css" href="/images/bcn2.css"> 
     
    <font face="Arial" color="#C0C0C0">
    <h1 align="center" style="text-align: left">
    <font color="#C60018" style="font-size: 11pt"><a href="../Liste_téléphonique.asp">
    &lt;&lt;&lt; Retour à la recherche des utilisateurs</a></font></h1>
    <h1 align="center"><font size="5" color="#C0C0C0"><b>Données des utilisateurs 
    BCN</b></font></h1>
     
    <div id='fr'>
    <p align="center"><strong>Résultat pour le critère de recherche suivant : '<%response.write Request("ListeRC")%>'&nbsp;&nbsp;
    </strong></p>
     
    <div align="center"><center>
    <table border="0" height="150" bordercolorlight="#000000" bordercolordark="#000000">
      <!-- MSTableType="nolayout" -->
     <tr>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" bordercolor="#C0C0C0" height="1">
     <b>
     <font size="3">Siglage</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" bordercolor="#C0C0C0" height="1">
     <b>
     <font size="3">Nom</font>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" bordercolor="#C0C0C0" height="1">
     <b>
     <font size="3">Acro.</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" bordercolor="#C0C0C0" height="1">
     <b>
     <font size="3">Tél.</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <b>
     <font size="3">Natel/Fax/Tél.</font>&nbsp;</b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <b><font size="3">User</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <b><font size="3">N° Tiers</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <b><font size="3">Rôle</font></b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <b><font size="3">Service</font>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</b></td>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left bgcolor="#E1E1E1" valign="middle" bordercolor="#C0C0C0" height="1">
     <font size="3"><b>Emplacement</b></font><b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</b></td>
     
    <strong>
        <td style="border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" align=left height="1">
     </td>
      </tr>
    <%Do While Not objRecordset.EOF%>
     
      </strong>
     
      <tr>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=objRecordset("Siglage")%>&nbsp;
    </font>
    </td>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><a style="text-decoration: none" target="_blank" href ="file://Photos/<%=objRecordset("User")%>.jpg">
     <font color="#000000"><%=objRecordset("Nom")%>&nbsp</font></a>
    </font>
    </td>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=objRecordset("Acronyme")%>&nbsp;
    </font>
    </td>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=objRecordset("Téléphone")%>&nbsp;
    </font>
    </td>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=objRecordset("Natel")%>&nbsp;
    </font>
    </td>
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=objRecordset("User")%>&nbsp;
    </font>
    </td>
     
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px" align="right"><%=objRecordset("N° Tiers")%>&nbsp&nbsp;
    </font>
    </td>
     
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=objRecordset("Rôle")%>&nbsp;
    </font>
    </td>
     
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=objRecordset("Service")%>&nbsp;
    </font>
    </td>
     
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" bordercolor="#C0C0C0" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><%=objRecordset("Succursale")%>&nbsp;
    </font>
    </td>
     
        <td style="font-family: Arial; font-size: 10pt; border-left-style:none; border-left-width:1px; border-right-style:none; border-right-width:1px; border-top-style:none; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" height="10" nowrap>
     <font size="3">
     <p style="margin-top: 0px; margin-bottom: 0px"><a a style="text-decoration: none" href ="mailto:<%=objRecordset("E-mail")%>">
     <font color="#000000">E-mail&nbsp</font></a></a>&nbsp;
    </font>
    </td>
     
    <strong>
     
    <%objRecordset.MoveNext%>
     
    <%Loop%>
     
    <%set objRecordset=Nothing%>
      </table>
    </center></div>
    </div id='fr'>
    </body>
    </html>

  9. #9
    Modérateur
    Avatar de roro06
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    1 480
    Détails du profil
    Informations personnelles :
    Âge : 55
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 480
    Points : 1 978
    Points
    1 978
    Par défaut
    Bonjour

    Ben je ne vois rien dans ton code de problématique (mis à part l'imbrication des balises, c'est un joyeux b...el). Quel est le message que tu obtient, exactement ?

    Pour la limitation, je viens de faire un test, plus de 3000 enregistrements, sans problèmes.

  10. #10
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : Suisse

    Informations forums :
    Inscription : Août 2009
    Messages : 12
    Points : 6
    Points
    6
    Par défaut
    Re,

    En fait je reçois la page d'erreur suivante, si j'ai plus de 500 enregistrements :



    Merci à +


    Impossible d'afficher la page
    La page que vous recherchez est actuellement indisponible. Le site Web rencontre peut-être des difficultés techniques, ou vous devez modifier les paramètres de votre navigateur.

    --------------------------------------------------------------------------------

    Essayez de la manière suivante :

    Cliquez sur le bouton Actualiser ou recommencez ultérieurement.

    Si vous avez entré l'adresse de cette page dans la barre d'adresses, vérifiez qu'elle est correcte.

    Pour vérifier vos paramètres de connexion, cliquez sur le menu Outils, puis sur Options Internet.. Dans l'onglet Connexions, cliquez sur Paramètres. Les paramètres doivent correspondre à ceux fournis par votre administrateur réseau ou par votre fournisseur d'accès à Internet.
    Vérifiez que vos paramètres de connexion Internet sont détectés. Vous pouvez configurer Microsoft Windows de façon à ce qu'il examine votre réseau et détecte automatiquement les paramètres de connexion (si votre administrateur réseau a activé ce paramètre).
    Cliquez sur le menu Outils, puis cliquez sur Options Internet.
    Dans l'onglet Connexions, cliquez sur Paramètres réseau.
    Sélectionnez Détecter automatiquement les paramètres de connexion, puis cliquez sur OK.
    Certains sites exigent une sécurité de connexion 128 bits. Cliquez sur le menu ? (Aide) puis sur À propos de Internet Explorer pour déterminer le niveau de cryptage installé.
    Si vous tentez de joindre un site sécurisé, vérifiez que vos paramètres de sécurité le prennent en charge. Cliquez sur le menu Outils, puis cliquez sur Options Internet. Dans l'onglet Avancé, faites défiler les options jusqu'à la section de sécurité, et vérifiez les paramètres d'utilisation de SSL 2.0, SSL 3.0, TLS 1.0 et PCT 1.0.
    Cliquez sur le bouton Précédente pour essayer un autre lien.



    Impossible de trouver le serveur ou erreur DNS
    Internet Explorer

  11. #11
    Modérateur
    Avatar de roro06
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    1 480
    Détails du profil
    Informations personnelles :
    Âge : 55
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 480
    Points : 1 978
    Points
    1 978
    Par défaut
    Bon !

    Il faut paramétrer IIS (via la console d'administration) pour qu'il envoie des messages d'erreurs détaillés au client et non des messages d'erreurs simplifiés.

    Ca aidera à avancer.

  12. #12
    Membre expérimenté
    Avatar de kaiser59
    Homme Profil pro
    Inscrit en
    Novembre 2005
    Messages
    1 264
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 1 264
    Points : 1 350
    Points
    1 350
    Par défaut
    Salut,

    Si ton problème survient au delà de 500 lignes mais fonctionne avant c'est que ton problème se situe dans le code après les 500 lignes et se serait bien de savoir ce qu'il y a dedans.

    De plus sépare ton programme afin de localiser la cause

    Sinon tu la sors d'où la bonne blague de limitation des 1 000 lignes

  13. #13
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : Suisse

    Informations forums :
    Inscription : Août 2009
    Messages : 12
    Points : 6
    Points
    6
    Par défaut
    Bonjour roro06 et kaiser59,

    Merci pour votre aide.

    @ roro06

    Je décrypte ton message et reviens donner le message d'erreur !
    Non je regarde, car je dois trouver la personne qui pourra me modifier cet "IIS"

    @ kaiser59

    Dans le code ? (il se trouve poster ci-dessus)
    Comment séparer le programme ?
    Non sérieusement, je ne sais pas si cela vient de notre serveur ou quoi, mais elles nous font toutes le problème à 1000 lignes

    Amicalement

    Hamsterj

  14. #14
    Membre expérimenté
    Avatar de kaiser59
    Homme Profil pro
    Inscrit en
    Novembre 2005
    Messages
    1 264
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 1 264
    Points : 1 350
    Points
    1 350
    Par défaut
    As tu regarder dans la config IIS pour rallonger le timeout, il se trouve qu'en fait, ton programme fonctionne mais n'a pas le temps d'être complètement exécuter faute à un manque de temps.

    En gros, je ne sais plus la valeur par défaut pour l'exécution des scripts dison 90s alors, il a assez de temps pour faire les 500lignes mais si tu en rajoutes plus... Timeout ! Donc bug.

    Afin de voir si vraiment il y a un bug après 500 lignes ajoute tout simplement
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Response.write "<p>Je suis la 501ème ligne</p>"
    Je viens de voir ton code..... Se serait bien de l'alléger parce que la c'est trop,
    1 - Utiliser le numéro de colonnes au lieu du nom du champ, p.e : Colonne 0 = "Nom", on a donc : au lieu de 2 - un div avec un id n'a pas besoin de lui repréciser son nom :
    et non pas
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <div id="fr"></div id="fr">"
    3 - Combien d'enregistrement retourne ta requête dans Access, ensuite regarde s'il n'y a pas possibilité de filtrer parce qu'elle me parait bien lourde à traiter. De plus, inutile de dire que tu utilises la table USER dans le select et le where pour chaque appel d'un champ notamment ton USER.TOTO USER.TATA etc... Et si tu fais appel à tous les champs de la table alors utilise * 4 - Lorsque tu écris dans l'asp essaye de rester le plus souvent pour éviter les va et viens cleint -server même s'ils ne sont pas visible.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    i=0
    do while not rs.eof
      response.write "<p>"& rs(i) &"</p>"&vbcrlf
    loop
    au lieu de
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <p><% rs("toto") %></P>

Discussions similaires

  1. Réponses: 4
    Dernier message: 22/05/2007, 10h52
  2. une erreur apres l'installation d'un paquet
    Par touhami dans le forum Delphi
    Réponses: 1
    Dernier message: 21/05/2007, 19h25
  3. Récupérer une date depuis une page ASP dans une BDD
    Par franckrichard57 dans le forum ASP
    Réponses: 2
    Dernier message: 22/03/2007, 11h31
  4. Requete sql vers ORACLE qui renvoi une erreur
    Par lilou77 dans le forum Oracle
    Réponses: 7
    Dernier message: 29/01/2007, 09h52
  5. Réponses: 3
    Dernier message: 13/11/2006, 23h25

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