", " ") Dim str1 As String = ....">
C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

multiple replace string


Posted Date: 25 Jul 2008      Posted By: kali raj      Member Level: Gold     Points: 1   Responses: 1



Dim str As String = Replace(rb.SelectedText, "<TD>", " ")
Dim str1 As String = Replace(str, " ", "")
Dim str2 As String = Replace(str1, "</TD>", "")
TextBox3.Text = str2.Trim

I want do this in one replace statement..

how ??????????





Responses

Author: Muralidharan Rangaraju    25 Jul 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Try this:

Dim str as string = rb.selectedText
str = str.Replace("<td>","").Replace(""," ").Replace("</TD>","")

Regards,
Murali



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : how to make a PDF from and xsl FO file
Previous : reduse size
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use