Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 02, 2012 09:50 PM by GordMacDonald
Member
84 Points
132 Posts
Aug 02, 2012 09:38 PM|LINK
Hi all,
I have a small bit of code which I want to be run when the markup is being pushed out to the browser (I want to replace French characters with the HTML encoded equivalents)
I am using code such as below:
protected override void Render(System.Web.UI.HtmlTextWriter writer) { // code goes here }
the code is placed in the pages code behind but is not firing.
q1: should this code be in each pages codebehind - if not where
q2: what do I have to do to get the code to run (it is currently being ignored)
Thanks
Gord
Aug 02, 2012 09:50 PM|LINK
I found a solution - place the code into a System.Web.UI.Page override class
GordMacDonal...
Member
84 Points
132 Posts
how do I activate: protected override void Render(System.Web.UI.HtmlTextWriter writer) ???
Aug 02, 2012 09:38 PM|LINK
Hi all,
I have a small bit of code which I want to be run when the markup is being pushed out to the browser (I want to replace French characters with the HTML encoded equivalents)
I am using code such as below:
protected override void Render(System.Web.UI.HtmlTextWriter writer) { // code goes here }the code is placed in the pages code behind but is not firing.
q1: should this code be in each pages codebehind - if not where
q2: what do I have to do to get the code to run (it is currently being ignored)
Thanks
Gord
GordMacDonal...
Member
84 Points
132 Posts
Re: how do I activate: protected override void Render(System.Web.UI.HtmlTextWriter writer) ???
Aug 02, 2012 09:50 PM|LINK
I found a solution - place the code into a System.Web.UI.Page override class