Page 1 of 3 123 Last
  • Jump to page:
    #1
  1. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2925

    Post Things You Should Know


    I just stumbled upon very essential information that I didn't know before, or at least wasn't sure it's true. that information can solve numerous problems, thus i'll post it here. if you see such information, feel free to post it here as well.

    and now to the point:
    ---
    ASP Pages, Session State and the Parent Path options are disabled by default in Windows 2003 Server. If do not enable this functionality after installing IIS, IIS returns a 404 error. You can enable these features through the IIS Manager. To enable these options:





    • In the Start menu, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
    • Double-click your computer name in the left pane, and then right-click Web Site.
    • Click Properties in the popup menu.
    • Select the Home Directory tab, and then click the Configuration button.
    • Click App Options, and then click to select the Enable Session State and Enable Parent Paths check boxes.
    • Click OK two times.
    • Right click on the Web Extensions choice in the left pane.
    • Click to Enable ASP extensions.
    Click OK two times.
    ---


    the above solve 3 very common problems:
    1. ASP "is not working"
    2. SSI "not working"
    3. Session variables "are not working" or blank.
    Happy Coding!


    Next Part:
    http://forums.aspfree.com/showpost.p...6&postcount=12

    Comments on this post

    • Kainan agrees
    • chapman10s agrees : Shadow, your help has been sound and helpful. Thank you
    Attached Files
    Last edited by Shadow Wizard; June 27th, 2006 at 12:44 PM. Reason: added PDF
  2. #2
  3. Senior Water Wizard
    ASP Mastermind (5000+ posts)

    Join Date
    Aug 2004
    Location
    Cape Town, RSA
    Posts
    10,233
    Rep Power
    862
    thanx for the info Shadow
  4. #3
  5. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2925
    probably this is available in tutorials as well, but not very visible and known - hopefully being sticky here would make this knowledge more public.
  6. #4
  7. The Constant Student
    ASP Adventurer (500 - 999 posts)

    Join Date
    Aug 2004
    Location
    England
    Posts
    914
    Rep Power
    37
    Originally Posted by nada
    Shadow Wizard do you have an idea why changes not show in the database when inserting or deleteing records?
    Please don't tag on posts. Please create your own thread. Lot's of people will see your question.

    Thank you.

    Shadow: Great info. Thanks.
    - Post your code
    - Post your errors
    - Be clear
    - Be courteous
    PLEASE...Finalise your thread with a solution or confirmation that the last advice worked or failed (We are here to help each other).
  8. #5
  9. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2925
    no, I don't have. the above information is not relevant for this... post it as new thread if you didn't post already and I'll try to help in there.
  10. #6
  11. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2925
    don't worry guys, I'll run cleanup routine on this thread if needed.
  12. #7
  13. Senior Water Wizard
    ASP Mastermind (5000+ posts)

    Join Date
    Aug 2004
    Location
    Cape Town, RSA
    Posts
    10,233
    Rep Power
    862
    seems like we all posted at the same time
    no you thread is dirty
    Look! Its a ShemZilla


  14. #8
  15. No Profile Picture
    Contributing User
    ASP Good Citizen (1000 - 1499 posts)

    Join Date
    Jan 2005
    Posts
    1,377
    Rep Power
    20
    hi,

    i had your post printed and right in front of my eyes while i was helping him and he was really happy to get it working in end

    Thank you shadow once again

    shalom shalom


    Sammy
  16. #9
  17. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2925
    Originally Posted by sam_sam
    hi,

    i had your post printed and right in front of my eyes while i was helping him and he was really happy to get it working in end

    Thank you shadow once again

    shalom shalom


    Sammy
    helping him? who? when?
    anyway no problem, glad I was of help.
  18. #10
  19. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2925
    Things You Should Know, Part #2
    When using Stored Procedures, or complex SQL code, always have SET NOCOUNT ON in the sql code.
    When executing such Stored Procedure or SQL Code the result is not normal recordset, but rather set of recordsets. thus, you have to call NextRecordset of the original recordset:
    Code:
      Set rsTemp=objCommand.Execute
      Set rs=rsTemp.NextRecordset
    this is usually ignored thus causing errors because the original recordset is Closed.

    Next Part
    Last edited by Shadow Wizard; June 23rd, 2005 at 03:45 AM.
  20. #11
  21. No Profile Picture
    Contributing User
    ASP Good Citizen (1000 - 1499 posts)

    Join Date
    Jan 2005
    Posts
    1,377
    Rep Power
    20
    hi,

    Belord works with me and he had some problems on monday evening.

    Shadow i have a problem in this post and you tell me what i am doing wrong

    http://forums.aspfree.com/t63863/s.html

    Thanks,

    Sammy
  22. #12
  23. Couch Potato Wizard
    ASP Mastermind (5000+ posts)

    Join Date
    Jan 2005
    Location
    India
    Posts
    13,651
    Rep Power
    2689
    This thread is really getting dirty with some off topic posts(like mine)!
    but nice info shadow.......... specially the first one
    Laziness is my religion and Sunday is my God

    Get the Mantra!
  24. #13
  25. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2925
    Things You Should Know, Part #3
    Why session variables do not work, or why cookies are not being stored?
    First, read this great link: http://www.aspfaq.com/show.asp?id=2157
    In short, 2 reasons are the most weird and probably common:
    1. server name contain underscore or non english characters
    2. global.asa file is empty.
    important quotes from that page:
    If you are using IE 5.5 or IE 6.0, and your local server name has an underscore or other non-alphanumeric character (other than a dash) in the name, then cookies will not work correctly. One workaround is to access the machine by IP address; others include renaming the server or at least adding an entry to the clients' hosts files, or alter your local DNS/WINS, or add a new host header to the web server, with a more friendly name. For more info, see KB #312461 and KB #316112.
    Ensure that the global.asa in the affected application, virtual directory, or web site is not empty. For more information, see KB #281298. Also be sure that the virtual directory was not created using Visual InterDev (see KB #188715).
    Next Part
    Last edited by Shadow Wizard; July 6th, 2005 at 10:41 AM. Reason: added next part...
  26. #14
  27. Contributing User
    ASP Skiller (1500 - 1999 posts)

    Join Date
    Apr 2004
    Location
    United States
    Posts
    1,814
    Rep Power
    17

    SQL injection -- What you MUST KNOW!!!!


    Things You Should Know, Part #4

    Hey everyone,

    How safe is your asp site?!

    Probably not as safe as you might think. I have put this in Shadow's thread for the fact I it is highly visible and for the fact MANY highly regarded asp gurus out there were not aware of some of the ADVANCED SQL injections that can be used to hack your site; therefore, here you go. btw - this was originaly found by ::Phoenix:: - Thanks


    SQL INJECTION - What is it and what to do to protect yourself from it!

    Next Part

    Comments on this post

    • Shadow Wizard agrees : good job!!
    • nofriends agrees
    • PhilCollins99 agrees
    • elijathegold agrees : Finally I can agree :D
    • MishaSoft agrees : AWASOME article!
    • vogtrj agrees : Great Information! Rarely put together in a friendly way like that.
    Last edited by Shadow Wizard; July 9th, 2005 at 11:05 AM. Reason: added next part. :)
    Please give respect to those that helped solve an issue by clicking on the icon
  28. #15
  29. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2925
    well done - I've added link to the previous part so the chain won't be broken.
Page 1 of 3 123 Last
  • Jump to page:

Similar Threads

  1. Different way of doing things
    By sam_sam in forum ASP Development
    Replies: 1
    Last Post: April 7th, 2005, 05:15 PM
  2. Need help on some things.
    By Borgis1 in forum Code Bank
    Replies: 46
    Last Post: February 17th, 2005, 01:16 AM
  3. Replies: 3
    Last Post: December 28th, 2003, 10:48 PM
  4. Need HELP! Trying to limit data in a chart among other things
    By electrobirdy in forum Microsoft Access Help
    Replies: 1
    Last Post: November 16th, 2003, 09:11 PM
  5. weird things with Redirect
    By Steve Schofield in forum ASP Development
    Replies: 2
    Last Post: November 9th, 2000, 02:56 AM

IMN logo majestic logo threadwatch logo seochat tools logo