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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rich Text Box adding spaces,format

Status
Not open for further replies.

aspengal

Technical User
Dec 27, 2004
41
US
I have a Rich Text box. in the Pre Render Event,debug mode, I do a
this.text1.text = "abcd"

Then the page loads. Then I have button in my page. I click the button and then again do a
this.text1.text = "abcd "

Why does this space get added? I did not add the space at the end but still it gets appended. It is so random. Sometimes the space addes before "a" and it is like " abcd"
Sometimes the HTML tags interchange positions too.

Is this a known bug? PLease help!!!
 
can you use string stest ="abcd";
and then when you load just use this.text1.text =stest.Trim();
 
Thanks chmohan, That was the very 1st thing I did. As I mentioned, it is very random, sometimes space is added at the end, sometimes inbetween, sometimes in the beginning or the HTML tags gets interchanged. SOmething to do with the RTF control.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top