Visualizzazione dei risultati da 1 a 3 su 3

Discussione: page not found 404...

  1. #1
    Utente di HTML.it L'avatar di a.felix
    Registrato dal
    Sep 2001
    Messaggi
    337

    page not found 404...

    Ciao errore strano ho una pagina di invio email ...

    con un semplice form e questo script :
    codice:
    <script type="text/javascript">
        $(window).bind('load', function() {
            $("#divContactForm").show();
            $("#divEmailSent").hide();
            $("#aSubmitForm").click(function() {
            debugger;
    		    $.ajax({
    			    type: "POST",
    			    url: "Send.aspx",
    			    data: "fname=" + $("#ctl00_PageBody_txtFName").val() + "& lname=" + $("#ctl00_PageBody_txtLName").val() + "& cmail=" +$("#ctl00_PageBody_txtEmail").val() + "& inquiry=" +$("#ctl00_PageBody_txtInquiry").val(),
                    success: function(message) {
                        $("#divContactForm").fadeOut("slow", function() {
                            $("#divEmailSent").fadeIn("slow");
                            $("#divEmailSent").html("<img src=\"Img/ok-128x128.png\" alt=\"Sended\" />
    Your email has been sent to 
     Emiliano Orlandi Sport Agency.");
                        });
                    },
                    error: function(errormessage) {
                        $("#divContactForm").fadeOut("slow", function() {
                            $("#divEmailSent").fadeIn("slow");
                            $("#divEmailSent").html("<img src=\"Img/no-128x128.png\" alt=\"Not Sended\" />
    Send Error : " + errormessage.responseText);
                        });
                    }
                });
            });
            // qui gestisce lo stato delle caselle textarea
            
            $('input[type="text"]').addClass("idleField");
            $('input[type="text"]').focus(function() {
                $(this).removeClass("idleField").addClass("focusField");
                if (this.value == this.defaultValue) {
                    this.value = '';
                }
                if (this.value != this.defaultValue) {
                    this.select();
                }
            });
            $('input[type="text"]').blur(function() {
                $(this).removeClass("focusField").addClass("idleField");
                if ($.trim(this.value == '')) {
                    this.value = (this.defaultValue ? this.defaultValue : '');
                }
            });
            $('textarea[class="txt"]').addClass("idleField");
    
        });
    </script>
    questo passa il per post i valori a una pagina asp.net che poi invia una mail tramite un webservice ...stupida stupida cosi'...

    codice:
            
    string no = Page.Request.Form[0].ToString();
            string co = Page.Request.Form[1].ToString();
            string em = Page.Request.Form[2].ToString();
            string inq = Page.Request.Form[3].ToString();
            WService.EOService WS = new WService.EOService();
            WS.SendMail(em, no, co, inq);
    in locale funziona tutto su aruba da' errore...
    cosa puo' essere per voi??

    grazie

    l'errore:
    Send Error : The page cannot be found
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    --------------------------------------------------------------------------------

    Please try the following:

    Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
    If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
    Click the Back button to try another link.
    HTTP Error 404 - File or directory not found.
    Internet Information Services (IIS)

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

    Technical Information (for support personnel)

    Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
    Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.

  2. #2
    Moderatore di Annunci siti web, Offro lavoro/collaborazione, Cerco lavoro L'avatar di cavicchiandrea
    Registrato dal
    Aug 2001
    Messaggi
    26,133
    Sicuro che sul server la pagina sia nominata Send.aspx? Oppure che la stessa non ha un redirect a d'una pagina non presente?
    Cavicchi Andrea
    Problemi con javascript, jquery, ajax clicca qui

  3. #3
    Utente di HTML.it L'avatar di a.felix
    Registrato dal
    Sep 2001
    Messaggi
    337
    in effetti la pagina dava quell'errore anche esistendo ...non aveva codice di markup..ma solo nel code behind riceveva i valori ora ho messo uno stamp dell'errore generato.....invece ora funziona ....veramente strano e grazie mille cmq!!

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.