How to Read and Replace this

Posted by Jayakumars under .NET Framework on 1/22/2015 | Points: 10 | Views : 346 | Status : [Member] [MVP] | Replies : 1
Hi

My Html tag like this

<HTML>
<TITLE>Crystal Report Viewer</TITLE>
<BODY>
<img alt="Image" border="0" src="Images/logo.png" width="536" height="72" />
</BODY>
<HTML>

How to Read and Replace my Img Src tag like this
I need out put this


<HTML>
<TITLE>Crystal Report Viewer</TITLE>
<BODY>
<img alt="Image" border="0" src="https://www.google.co.in/test.png" width="536" height="72" />
</BODY>
<HTML>

how will do this any one solve this

Mark as Answer if its helpful to you


Responses

Posted by: Sheonarayan on: 1/24/2015 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
You can use Replace function. Read the entire content and then fire the Replace function.

string myContent = pageContent.Replace("border=\"0\" src=", "border=\"0\" src=\"https://www.google.co.in/");


Thanks.

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response