Results 1 to 4 of 4

Thread: Response.Write positioning [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    Response.Write positioning [RESOLVED]

    I'm using Response.Write in my TRY, CATCH, error trapping on my VB codeBehind page. Two questons...Can you position the Response.Write? It pops up on the upper left side of my page and I have a .gif there. Also, can you change the font color of the message?
    Last edited by EyeTalion; Dec 20th, 2002 at 08:48 AM.

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    Could be wrong but I'm pretty sure you can't position the response.write when it's used in the code-behind, cuz when you're calling it, it's basically saying write out whatever you want right now which is before the html is sent to the client. You might try using a Label and position that anywhere you want your message to appear, then in your try block instead of response.write, just set the Text of the Label.

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    use the asp:Literal control , position it where needed in the aspx file, then set its text to the html code you need to show there.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    thanks guys. I decided to go with a label.


    Cander, whats the function of the asp:literal control?

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