Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: ASP Question

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Brisbane, Australia
    Posts
    181
    Thanks
    1
    Thanked 0 Times in 0 Posts

    ASP Question

    ASP CODE:

    <%
    Set data = CreateObject ("Scripting.FileSystemObject")
    Set info = data.OpenTextFile ("E:\websites\wwwschools\kgsc\" & Response.Form("page") & ".txt")

    filecontent = info.ReadAll
    info.close
    response.write(filecontent)
    %>

    that's if i want it from a form submission but what if i want it from a query string? i dont know how to do this. im relatively new to ASP so i really need some help. its for a competition!

    Thanks

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts

    Re: ASP Question

    Originally posted by mr_ego
    ASP CODE:

    <%
    Set data = CreateObject ("Scripting.FileSystemObject")
    Set info = data.OpenTextFile ("E:\websites\wwwschools\kgsc\" & Request.QueryString("Page") & ".txt")

    filecontent = info.ReadAll
    info.close
    response.write(filecontent)
    %>


    Thanks
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •