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 »

Find and replace in HTML File


Posted Date: 07 Nov 2009      Posted By: Prachi Angadi      Member Level: Silver     Points: 1   Responses: 1



Hello,
I have HTML text in which i have to find and replace particular word.
Problem is if i want to find word "Cough,"(Cough along with comma)and if this word is formatted as BOLD then the HTML text is
<strong>Cough</strong>,Fever
Then how can I find internally in my code the word "Cough," and replace it with
blank value i.e Remove The word "Cough,"





Responses

Author: Kirtan    08 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

its Simple

string HTML = "<strong>Cough,</strong>";

HTML = HTML.Replace("Cought,",string.Empty);

Kirtan Patel
-----------------------------------------------------
Master Of Computer Application(Sem-1)
Bachelore of Computer Application



Post Reply
You must Sign In to post a response.
Next : Button Click
Previous : Setting visibilty of pannel inside repetor by gridview rowcommand
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use