Visualizzazione dei risultati da 1 a 7 su 7

Discussione: script error

  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2003
    Messaggi
    583

    script error

    <%
    If Rec("foto1")="" then
    response.write("[img]../images/1pixel.gif[/img]")
    Else
    [img]<%=Rec([/img]">
    End If
    %>


    mi da

    Microsoft VBScript compilation error '800a0400'

    Expected statement

    /public/popup1.asp, line 54

    <img src="<%=Rec("foto1")
    ^



    cosa sto sbagliando

  2. #2
    Utente di HTML.it L'avatar di Sypher
    Registrato dal
    Jun 2003
    Messaggi
    1,994
    devi chiudere i tag asp dopo l'else e riaprirli prima dell'end if
    La passera non dura perchè Sypher la cattura!

    "No one like us we don't care, we are millwall, super millwall, we are millwall from the DEN"

  3. #3
    Utente di HTML.it
    Registrato dal
    Jul 2003
    Messaggi
    583
    cioe

  4. #4
    Utente di HTML.it L'avatar di Sypher
    Registrato dal
    Jun 2003
    Messaggi
    1,994

    Re: script error

    codice:
    <%
    If Rec("foto1")="" then
       response.write("[img]../images/1pixel.gif[/img]")	
    Else
    %>
       [img]<%=Rec([/img]">
    <%
    End If
    %>
    La passera non dura perchè Sypher la cattura!

    "No one like us we don't care, we are millwall, super millwall, we are millwall from the DEN"

  5. #5

    Oppure...

    codice:
    <%
    If Rec("foto1") = "" then
         response.write("[img]../images/1pixel.gif[/img]")
    Else
         response.write "[img]" & Rec("foto1") & "[/img]"
    End If
    %>

  6. #6
    Utente di HTML.it L'avatar di Sypher
    Registrato dal
    Jun 2003
    Messaggi
    1,994
    anche se io farei così
    codice:
    <%
    If Rec("foto1")="" then
       Response.Write "[img]../images/1pixel.gif[/img]" 	
    Else
       Response.Write "[img]" & Rec("foto1") & "[/img]"
    End If
    %>
    La passera non dura perchè Sypher la cattura!

    "No one like us we don't care, we are millwall, super millwall, we are millwall from the DEN"

  7. #7
    Utente di HTML.it L'avatar di Sypher
    Registrato dal
    Jun 2003
    Messaggi
    1,994

    Re: Oppure...

    Originariamente inviato da Corinna
    codice:
    <%
    If Rec("foto1") = "" then
         response.write("[img]../images/1pixel.gif[/img]")
    Else
         response.write "[img]" & Rec("foto1") & "[/img]"
    End If
    %>
    ecco appunto
    La passera non dura perchè Sypher la cattura!

    "No one like us we don't care, we are millwall, super millwall, we are millwall from the DEN"

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.