Visualizzazione dei risultati da 1 a 8 su 8
  1. #1

    problemi con frontpage e database

    scusatemi ho un problema...voglio creare un modulo di ricerca che invii la sua richiesta ad un database integrato nel sito e che invii i suoi risultati in un frame posto nella stessa pagina....ma ho questa cosa.....




    <%
    ' FP_ASP File ASP generato automaticamente da un componente di FrontPage. Non modificarlo.

    On Error Resume Next
    Session("FP_OldCodePage") = Session.CodePage
    Session("FP_OldLCID") = Session.LCID
    Session.CodePage = 1252
    Session.LCID = 1040
    Err.Clear

    strErrorUrl = ""

    If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
    If Request.Form("VTI-GROUP") = "0" Then
    Err.Clear

    Set fp_conn = Server.CreateObject("ADODB.Connection")
    FP_DumpError strErrorUrl, "Impossibile creare la connessione."

    Set fp_rs = Server.CreateObject("ADODB.Recordset")
    FP_DumpError strErrorUrl, "Impossibile creare il set di record."

    fp_conn.Open Application("Database1_ConnectionString")
    FP_DumpError strErrorUrl, "Impossibile aprire il database."

    fp_rs.Open "Cliente", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable
    FP_DumpError strErrorUrl, "Impossibile aprire il set di record."

    fp_rs.AddNew
    FP_DumpError strErrorUrl, "Impossibile aggiungere nuovi set di record al database."
    Dim arFormFields0(0)
    Dim arFormDBFields0(0)
    Dim arFormValues0(0)


    FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0


    fp_rs.Update
    FP_DumpError strErrorUrl, "Impossibile aggiornare il database."

    fp_rs.Close
    fp_conn.Close

    FP_FormConfirmation "text/html; charset=windows-1252",_
    "Conferma modulo",_
    "Grazie per averci inviato le seguenti informazioni:",_
    "Ricerca%20clienti.asp",_
    "Torna al modulo"

    End If
    End If

    Session.CodePage = Session("FP_OldCodePage")
    Session.LCID = Session("FP_OldLCID")

    %>
    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta http-equiv="Content-Language" content="it">
    <title>Ricerca clienti</title>
    <link rel="stylesheet" type="text/css" href="_themes/blends/blen1011.css"><meta name="Microsoft Theme" content="blends 1011, default">
    <meta name="Microsoft Border" content="tl, default">
    </head>

    <body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>



    [img]_derived/Ricerca%20clienti.asp_cmp_blends010_bnr.gif[/img]</p>

    </td></tr></table><table dir="ltr" border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top" width="1%">



    <script language="JavaScript"><!--
    MSFPhover =
    (((navigator.appName == "Netscape") &&
    (parseInt(navigator.appVersion) >= 3 )) ||
    ((navigator.appName == "Microsoft Internet Explorer") &&
    (parseInt(navigator.appVersion) >= 4 )));
    function MSFPpreload(img)
    {
    var a=new Image(); a.src=img; return a;
    }
    // --></script><script language="JavaScript"><!--
    if(MSFPhover) { MSFPnav1n=MSFPpreload("_derived/home_cmp_blends010_hbtn.gif"); MSFPnav1h=MSFPpreload("_derived/home_cmp_blends010_hbtn_a.gif"); }
    // --></script>[img]_derived/home_cmp_blends010_hbtn.gif[/img]</p>

    </td><td valign="top" width="24"></td><td valign="top">
    <form method="POST" target="Risultati ricerca_" action="Ricerca%20clienti.asp" webbot-action="--WEBBOT-SELF--">
    <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">


    <input type="submit" value="Cerca" name="B1"><input type="reset" value="Cancella" name="B2">&quot;Nome
    e cognome del cliente&quot;</p>
    </form>



    <iframe name="I1" src="Risultati%20ricerca_.asp">
    Il browser in uso non supporta frame non ancorati oppure è configurato in modo che i frame non ancorati non siano visualizzati.
    </iframe>
    </p>
    <h5></h5>
    <h5></h5>

    </td></tr></table></body>

    </html>

    che tipo di errore è qll che si presenta cosi???


    On Error Resume Next
    Session("FP_OldCodePage") = Session.CodePage
    Session("FP_OldLCID") = Session.LCID
    Session.CodePage = 1252
    Session.LCID = 1040
    Err.Clear

    strErrorUrl = ""

  2. #2

  3. #3
    On Error Resume Next
    Session("FP_OldCodePage") = Session.CodePage
    Session("FP_OldLCID") = Session.LCID
    Session.CodePage = 1252
    Session.LCID = 1040
    Err.Clear

    strErrorUrl = ""



    non riesco a capire xkè mi da questo errore

  4. #4
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Ma è una pagina ASP?

    Roby

  5. #5
    si, praticamente ho cercato di inserire un modulo di ricerca....ma mi sa che non ci sono riuscito....

  6. #6
    allora t espongo il problema...voglio creare una ricerca libera per nome.....ho inserito un modulo di ricerca nella pagina web e ho inviato la richiesta al database importato nel sito.....solo che quando visualizzo il sito in anteprima con frontpage mi da quel messaggio che t ho inviato prima....non capisco dove sia l'errore.....non riesco a creare un modulo di ricerca....

  7. #7

  8. #8
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Sarebbe il caso che tui provassi le tue pagine direttamente dal localhost e non dall'anteprima di frontpage che per quanto ne so aggiunge confusione a confusione.

    Roby

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 © 2026 vBulletin Solutions, Inc. All rights reserved.