Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Response.Write problem !!

Response.Write problem !!

Scheduled Pinned Locked Moved ASP.NET
helpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vijay2583
    wrote on last edited by
    #1

    hi, generallary if we give response.write. it will be printed on top.But i don't want that.I want to display it in a desired location.Can we specify any location for Response.Write?If yes,how? thanks vijay

    G 1 Reply Last reply
    0
    • V vijay2583

      hi, generallary if we give response.write. it will be printed on top.But i don't want that.I want to display it in a desired location.Can we specify any location for Response.Write?If yes,how? thanks vijay

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      No, you can't. You should only use Response.Write if you use it to output the entire page yourself. Put a Label or Literal control on the page where you want the output, and assign it to the Text property of the control.

      --- b { font-weight: normal; }

      C 1 Reply Last reply
      0
      • G Guffa

        No, you can't. You should only use Response.Write if you use it to output the entire page yourself. Put a Label or Literal control on the page where you want the output, and assign it to the Text property of the control.

        --- b { font-weight: normal; }

        C Offline
        C Offline
        cloudking11966
        wrote on last edited by
        #3

        Yes You can,:laugh: Give Response.Write("

        Hi Guffa

        "); You can change LEFt & TOP as you wish. Cheers !!! Sony Sebastian :laugh:

        G 1 Reply Last reply
        0
        • C cloudking11966

          Yes You can,:laugh: Give Response.Write("

          Hi Guffa

          "); You can change LEFt & TOP as you wish. Cheers !!! Sony Sebastian :laugh:

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          Yes, you can do like that, but not if you want a well working web page. The tag will be placed at the top of the html code, even before the doctype and html tags. This makes the html code invalid, and throws the browser into quirks mode. This is especially serious for Internet Explorer, because it renders the page quite differently in this mode.

          --- b { font-weight: normal; }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups