|
-
Dec 19th, 2002, 09:16 AM
#1
Thread Starter
Frenzied Member
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.
-
Dec 19th, 2002, 03:19 PM
#2
Hyperactive Member
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.
-
Dec 19th, 2002, 03:29 PM
#3
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.
-
Dec 20th, 2002, 08:19 AM
#4
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|