Hello, I'm in need of modifying some output that is being generated for ZoomASPX control in my code. Typical way of doing this is to render control into temporary HtmlTextWriter where it can be manipulated before written into real page HtmlTextWriter that is to be sent to client. Sample code snippet:
However ASPXSearch control then renders into a display of cool asian characters
in length comparable to the supposed content.
SOLVED: Next post.
Code:
protected override void Render(HtmlTextWriter writer) { using (var htmlwriter = new HtmlTextWriter(new StringWriter())) { ASPXSearch.RenderControl(htmlwriter); string modifiedOutput = htmlwriter.InnerWriter.ToString().Replace("Default.aspx", "Search-Results.aspx"); writer.Write(modifiedOutput); } }
敐浲獩楳湯搠湥敩�潌楦敬慮敭愠摮瀠瑡潮⁴潦湵吨獥潬
SOLVED: Next post.
Comment