Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

alternative to response.write ?

Status
Not open for further replies.

NoCoolHandle

Programmer
Apr 10, 2003
2,321
US
Ok what I need to be able to do is to place the result of a response.write in a specific location..

Where is seems to be sent is BEFORE the <html> tag, which should be INVALID for any html document... (I'll save that is for another thread)

However I want to place it at the end of the page instead..
Any ideas welcome.. At present I am thinking along the lines of a asp:lable but would prefer to use good old fashioned html.

Rob
 
If you're just putting a response.write out of no-where, it'll stick it at the top.

If you wrap that response.write into a tablecell at the bottom, it'll display where you want it.

i.e.

<html>
<body>
Response.write &quot;this will render at the top&quot;
<table>
Response.write &quot;<tr><td>&quot;
Response.write &quot;This will render properly&quot;
Response.write &quot;</td></tr>&quot;
</body>
</html>

hth

D'Arcy
 
Here's an idea, if I can put my 2 cents in...

Make an asp label at the top or bottom of your form and change the looks to look like a status bar. Then when you want to display a message, just write to it.
myLabel.Text = &quot;My Message&quot;

This is how I did mine. You can also change the browser header caption too. I haven't tried writing to the real status bar. I don't know if you can get to it.
 
Bigfoot

try
Response.Write(&quot;<script language=vbscript> window.status = &quot;&quot;Good&quot;&quot;</script>&quot;)

D'Arcy,

sorry I should have pointed out this was in responce to clicking an asp:button object, having the server do some processing and then returning to the to a specific spot a responce .write..

Kind of like with client side code yo can do an insertinnerhtml to drop it in a specific spot..

I think I am just going to go with the lable..

 
Oh, if this is in response to a server postback use the label!

Way easier for sure.

D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top