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.

View Poll Results: Which Do you Prefer?

Voters
0. You may not vote on this poll
  • Response.Write

    0 0%
  • =

    0 0%
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    51° 03' -78" N -114° 05' 72" W
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Which Do you prefer?

    Ok I have a simple question!

    Which do you prefer

    Response.Write blah

    or

    = blah

    as they both do the same thing

    so which do you prefer and why?

    sound like a school question doesnt it lol

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    It depends on what I am doing

    I will use <%= blah %> if I am displaying only a variable on the middle of html code

    I use Response.Write( blah ) if I am writing more then a varaible

    Both are handy for different situations.

  • #3
    Regular Coder
    Join Date
    Dec 2002
    Location
    France
    Posts
    522
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sub

    better to do a sub than this horrible mixed code html + asp
    even for one line

    Sub DoIt()
    Response.Write("ok")
    End Sub

    <%=DoIt%>

  • #4
    New Coder
    Join Date
    Oct 2003
    Location
    19° 26' N, 99° 7' W
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I agree with last posting


  •  

    Posting Permissions

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