Vinit Patel

Posts Tagged ‘Render

Hi,

 

The below code is for replace the specified attribute from the html.

protected override void Render(HtmlTextWriter writer)
{
using (System.IO.MemoryStream msOur = new System.IO.MemoryStream())
{
using (System.IO.StreamWriter swOur = new System.IO.StreamWriter(msOur))
{
HtmlTextWriter ourWriter = new HtmlTextWriter(swOur);
base.Render(ourWriter);
ourWriter.Flush();
msOur.Position = 0;
using (System.IO.StreamReader oReader = new System.IO.StreamReader(msOur))
{

string sTxt = oReader.ReadToEnd();
sTxt = sTxt.Replace(“rules=\”all\””, ” “);
Response.Write(sTxt);
oReader.Close();
}
}
}
}


Calendar

May 2017
M T W T F S S
« Jan    
1234567
891011121314
15161718192021
22232425262728
293031  

Stats Of Blog

  • 6,792 hits

Cluster Map