Visualizzazione dei risultati da 1 a 5 su 5

Discussione: validatore html & asp

  1. #1

    validatore html & asp

    ho creato delle pagine con alcune righe di asp
    quando faccio validare le pagine sul sito del w3c
    queste righe di codice mi generano errori che non mi consentono
    che la validazione vada a buon fine

    errori come questi

    codice:
    ✉ 
    
    Line 76, column 60: an attribute value literal can occur in an attribute specification list only after a VI delimiter
    
    ...>[img]img/<%=rs.Fields([/img]" width="417" height="280" border="0
    
    Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value". 
    
    ✉ 
    
    Line 98, column 127: cannot generate system identifier for general entity "sezione"
    
    ...esktop/prendimi/portfolio_index.asp?&sezione=<%=request.QueryString("sezione"
    
    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs". 
    
    Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters. 
    
    Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed. 
    
    ✉ 
    
    Line 98, column 127: general entity "sezione" not defined and no default entity
    
    ...esktop/prendimi/portfolio_index.asp?&sezione=<%=request.QueryString("sezione"
    
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. 
    
    ✉ 
    
    Line 98, column 134: reference to entity "sezione" for which no system identifier could be generated
    
    ...prendimi/portfolio_index.asp?&sezione=<%=request.QueryString("sezione")%>">po
    
    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. 
    
    ✉ 
    
    Line 98, column 126: entity was defined here
    
    ...Desktop/prendimi/portfolio_index.asp?&sezione=<%=request.QueryString("sezione
    come fare?

  2. #2
    anche pubblicando la pagina e facendo validare quindi l'html generato da asp (come mi sono reso conto è giusto fare... ) cmq incontro problemi relativi a link come questo:

    codice:
    portfolio
    che mi impediscono la validazione...

    forse è meglio che mi sposto in asp?!!...

  3. #3
    Utente di HTML.it L'avatar di zoom
    Registrato dal
    Dec 2001
    Messaggi
    1,737
    che errore ti da quel link? :master:

    p.s
    correggi il primo post che sballi tutto...
    Chicco Ravaglia per sempre con noi!

  4. #4
    ok, risolto da me...

    semplicemente la & dei link tipo quello riportati sopra vanno sostituiti con &amp;

    così:
    codice:
    portfolio
    caso mai a qualcuno potesse tornare utile

    alla pox

  5. #5
    Utente di HTML.it L'avatar di zoom
    Registrato dal
    Dec 2001
    Messaggi
    1,737
    magari la prossima volta posta l'errore e la riga che ti da errore giusta... :rollo:
    Chicco Ravaglia per sempre con noi!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.