1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how can i write asp code in a text file?

Discussion in 'C#' started by sejunction, Jul 10, 2006.

  1. #1
    I need to write asp code in a text file ( .txt extension) . How do i make it work?

    Thanks in advance.
    SEMrush
     
    sejunction, Jul 10, 2006 IP
    SEMrush
  2. Cheap SEO Services

    Cheap SEO Services <------DoFollow Backlinks

    Messages:
    16,670
    Likes Received:
    1,318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can use notepad to write the code and save the textfile as .asp or .txt for safekeeping.

    If you are asking how to write asp code. I suggest you get lessons.
     
    Cheap SEO Services, Jul 10, 2006 IP
  3. sejunction

    sejunction Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if i write asp code in a file with .txt extension it just shows the asp code when i call the file in a browser. i need a way to make asp engine parse the text file as asp file. i know i can set the option from iis administrative panels - but assuming i do not have acces to the web server, how to do this ? hope i have made myself clear...
     
    sejunction, Jul 10, 2006 IP
  4. mad4

    mad4 Peon

    Messages:
    6,989
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Unless you have access to configure the server this is impossible.
     
    mad4, Jul 10, 2006 IP
  5. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #5
    you need to configre your server to use ASP for .txt extensions
     
    ludwig, Jul 10, 2006 IP
  6. DanInManchester

    DanInManchester Active Member

    Messages:
    116
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    If you include the file you can use any extension however your calling page will need to be .asp (or any other extension registered to the asp application).

    However it is HIGHLY recommended that all your files use the asp extension to minimise the risk of code exposure. Even include files should use the asp extension to ensure that is a user discovers the file they cannot see the code inside.
     
    DanInManchester, Jul 12, 2006 IP
  7. leebari

    leebari Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yep, putting ASP code in txt file seems like a silly idea due to code exposure. If you want to use different extension for your include files, use .inc.asp or .txt.asp instead.

    Regards
     
    leebari, Oct 2, 2009 IP
  8. topman

    topman Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    u can use some free URL Rewriting dlls, but you should ask ur host provider to install it on the server
     
    topman, Nov 7, 2009 IP