Forum Moderators: open

Message Too Old, No Replies

Problem with Response.Write()

Response.write() add text at the top of text box

         

Devil

5:43 am on Jan 2, 2008 (gmt 0)

10+ Year Member



I m creating a dynamic text box and trying to add text in it by using Response.write every time a user clicks on a dynamically generated button. only problem is it adds text on the top or at the start. I want it to add at the end. Any suggestions?

marcel

11:51 am on Jan 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



asp or asp.net? Could you show a code example?

patzblue

9:14 pm on Feb 15, 2008 (gmt 0)

10+ Year Member



I doubt using Response.write is the best way to handle text in a text box. Response.write (and Response.end) is mostly used for debugging purposes :)

why don't you simply set the value of the text of the text box instead ? in pseudocode it would be something like : mytextbox.text = "the text I want" .

but as Marcel was asking, just in case, are you talking about asp.net ? and are you talking about code-behind or vbscript within your aspx ?