Results 1 to 9 of 9

Thread: Response.Write

  1. #1

    Thread Starter
    Addicted Member silentthread's Avatar
    Join Date
    Jun 2006
    Location
    Miami, Florida
    Posts
    143

    Smile Response.Write

    I love Response.Write with all my heart.

    I always hear this....
    "wahhhh, you should not use response.write, wahhhh"

    Response.Write rocks man! You can make cool javascript and ajax pages without having to worry about learning any new technology.

    Noone ever really says why you should not use Response.Write, they just repeat what other folks say. lol, kind of like Hollywood when it comes to politics. Right now, I'm reapeting something I heard in the movie..
    Team America, World Police
    Watch media as you download it! Excellent tool!
    FREE CUBA!
    MyBlog
    If you feel my post has helped, please rate it.

  2. #2
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: Response.Write

    Response.Write is a great debugging tool, but it's not good practice on a live site.

  3. #3
    Fanatic Member kregg's Avatar
    Join Date
    Feb 2006
    Location
    UK
    Posts
    524

    Re: Response.Write

    Response.Slap("ILMV")

    That should be a new... thingy... thing... um... SHUT UP!!

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Response.Write

    You haven't provided a compelling reason to use it, either, you've just said it's cool, which is more or less an appeal to ignorance.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Response.Write

    Quote Originally Posted by silentthread
    I love Response.Write with all my heart.

    I always hear this....
    "wahhhh, you should not use response.write, wahhhh"

    Response.Write rocks man! You can make cool javascript and ajax pages without having to worry about learning any new technology.

    Noone ever really says why you should not use Response.Write, they just repeat what other folks say. lol, kind of like Hollywood when it comes to politics. Right now, I'm reapeting something I heard in the movie..
    Team America, World Police
    Using Response.Write is bad. Using Response.Write to write javascript is worse. Using Response.Write to write "cool" AJAX is shameful, something I'd never admit to in public.

    The reason is, Response.Write occurs when the response stream is being sent and so the output can be sent at any point in the page rather than when it should be sent. If you create a script block of a function you've made, it's always best to use Page.RegisterClientScript (or its equivalent) so that the script is output to the correct place in the page. Incorrect placement of scripts (hence, Response.Write) can cause problems especially when you're working with the DOM. ASP.NET when used correctly effectively negates the purpose of Response.Write.

  6. #6

    Thread Starter
    Addicted Member silentthread's Avatar
    Join Date
    Jun 2006
    Location
    Miami, Florida
    Posts
    143

    Re: Response.Write

    ***puts on a grocery bag on head, and walks away in shame***
    Watch media as you download it! Excellent tool!
    FREE CUBA!
    MyBlog
    If you feel my post has helped, please rate it.

  7. #7
    Fanatic Member kregg's Avatar
    Join Date
    Feb 2006
    Location
    UK
    Posts
    524

    Re: Response.Write

    Quote Originally Posted by mendhak
    Using Response.Write is bad. Using Response.Write to write javascript is worse. Using Response.Write to write "cool" AJAX is shameful, something I'd never admit to in public.

    The reason is, Response.Write occurs when the response stream is being sent and so the output can be sent at any point in the page rather than when it should be sent. If you create a script block of a function you've made, it's always best to use Page.RegisterClientScript (or its equivalent) so that the script is output to the correct place in the page. Incorrect placement of scripts (hence, Response.Write) can cause problems especially when you're working with the DOM. ASP.NET when used correctly effectively negates the purpose of Response.Write.
    I was taught to use Response.Write for vbscript code. Thanks for that mendhak.

  8. #8
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Response.Write

    out.println
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  9. #9
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Response.Write

    cnuplzsaymiwords.wrt
    My usual boring signature: Something

Posting Permissions

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



Click Here to Expand Forum to Full Width