The Render event builds the page by assembling the HTML for output to the
browser. The page collects the HTML from each control in the hierarchy for
delivery. When the Render event is overridden, you can write custom HTML to
the browser that changes all or part of the HTML the page has created thus
far.It takes an HtmlTextWriter object as a parameter and uses that to output
HTML to be streamed to the browser. Changes can still be made at this point.
If you have your "codes" in certain controls on the page, it would probably
be a lot easier to modify these based on your Hashtable either in PreRender,
or you can even do it in Page_Load.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"gr*****@gmail.com" wrote:
Hi Guys.
I have a problem, and for some reason I have not been able to find an
answer on the net.
In a nutshell, I have some codes on my page, which I want to change to
an appropriate string (from a hashtable). Since I do not want to pass
this hashtable to a function all the time I encounter it on the page, I
want to do it once, in one function. Just capture HTML before rendering
the page, and then replace codes with my strings.
Any ideas would be appreciated.
Alex