asp question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ipcpr12
    New Member
    • Feb 2008
    • 4

    asp question

    I'm new in ASP.
    I'm working in a website that is built already and I need to know if that website in order to input ASP pages do I need to put that website directly in the Inetpub folder? Please let me know.
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Hi there,

    I'm not sure exactly what you are asking...

    Do you want to know how to browse an ASP website? The most basic way to do so is:

    Put your pages into the folder c:\inetpub\wwwr oot\ e.g.

    c:\inetpub\wwwr oot\MyWebPage.a sp
    c:\inetpub\wwwr oot\MyMenu.asp

    This folder is the root folder for your localhost so to look at your pages you put the following in the address bar of your browser e.g.

    //localhost/MyWebPage.asp

    Is this what you're after? If not then please explain a bit further.

    Hope this helps,

    Dr B

    Comment

    • CroCrew
      Recognized Expert Contributor
      • Jan 2008
      • 564

      #3
      It sounds like your in need of an FTP program and a course on how to use it.

      Comment

      • ipcpr12
        New Member
        • Feb 2008
        • 4

        #4
        Hi DrBunchman
        Thank for your reply
        The web site is already built, I just want to add some asp pages. I have an FTP and verified with the hosting company that it works, the only problem is that when in Dreamweaver 8 I use the the Request Variable option to get the persons name on the processing page (like a thank you page with the name in it) it only works only when I test it locally, but when I do it thru ftp which my website is not on the Inetpub drive it doesn't show the name.
        I hope this explained my problem.
        Originally posted by DrBunchman
        Hi there,

        I'm not sure exactly what you are asking...

        Do you want to know how to browse an ASP website? The most basic way to do so is:

        Put your pages into the folder c:\inetpub\wwwr oot\ e.g.

        c:\inetpub\wwwr oot\MyWebPage.a sp
        c:\inetpub\wwwr oot\MyMenu.asp

        This folder is the root folder for your localhost so to look at your pages you put the following in the address bar of your browser e.g.

        //localhost/MyWebPage.asp

        Is this what you're after? If not then please explain a bit further.

        Hope this helps,

        Dr B

        Comment

        • ipcpr12
          New Member
          • Feb 2008
          • 4

          #5
          The web site is already built, I just want to add some asp pages. I have an FTP and verified with the hosting company that it works, the only problem is that when in Dreamweaver 8 I use the the Request Variable option to get the persons name on the processing page (like a thank you page with the name in it) it only works only when I test it locally, but when I do it thru ftp which my website is not on the Inetpub drive it doesn't show the name.
          I hope this explained my problem.

          Comment

          • narayananbabun
            New Member
            • Feb 2008
            • 4

            #6
            Originally posted by ipcpr12
            I'm new in ASP.
            I'm working in a website that is built already and I need to know if that website in order to input ASP pages do I need to put that website directly in the Inetpub folder? Please let me know.
            >in order to run a asp page u should definetly put all the related pages in the wwwroot folder in inetpub
            dont put it directly in inetpub folder
            put it in www root folder

            then only u can run the website

            Comment

            • DrBunchman
              Recognized Expert Contributor
              • Jan 2008
              • 979

              #7
              Originally posted by ipcpr12
              The web site is already built, I just want to add some asp pages. I have an FTP and verified with the hosting company that it works, the only problem is that when in Dreamweaver 8 I use the the Request Variable option to get the persons name on the processing page (like a thank you page with the name in it) it only works only when I test it locally, but when I do it thru ftp which my website is not on the Inetpub drive it doesn't show the name.
              I hope this explained my problem.
              You are using Request.ServerV ariables to get the users name?

              e.g. sUsername = Request.ServerV ariables("AUTH_ USER")

              Comment

              • ipcpr12
                New Member
                • Feb 2008
                • 4

                #8
                Originally posted by DrBunchman
                You are using Request.ServerV ariables to get the users name?

                e.g. sUsername = Request.ServerV ariables("AUTH_ USER")
                First oage code

                <%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
                <html xmlns="http://www.w3.org/1999/xhtml">
                <head>
                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                <title>Untitl ed Document</title>
                </head>

                <body>
                <form id="frm_name" name="frm_name" method="post" action="test_fo rm_processor.as p">
                <label for="textfield" >First Name</label>
                <input type="text" name="firstName " id="firstName" />
                <input type="submit" name="Submit" value="Submit" />
                </form>
                </body>
                </html>

                This is the form page, I request the info in this page and here is the
                processing page.
                When I fill out the form the Thank you message comes out but without the name I put in the form before. This only happens when I put it thru my server, when I test it locally thru the wwwroot folder it works.


                <%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
                <html xmlns="http://www.w3.org/1999/xhtml">
                <head>
                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                <title>Untitl ed Document</title>
                </head>

                <body>
                <p>Thank you, <%= Request.Form("f irstName") %>, for filling out my form.
                </p>
                </body>
                </html>

                Comment

                • DrBunchman
                  Recognized Expert Contributor
                  • Jan 2008
                  • 979

                  #9
                  I'm not sure about why this is happening.....c an you try a very simple test on these pages by putting:

                  Code:
                   
                  <form name="Form1" method="post" action="test_form_processor.asp">
                  <input type="hidden" name="TestInput" value="Hello World!" />
                  <input type="submit" value="submit"> 
                  </form>
                  on your first page and try to response.write( request.form("T estInput")) on your second page to see if your any submitted values can be passed at all.

                  Dr B

                  Comment

                  Working...