Community
Showing results for 
Search instead for 
Do you mean 
Reply

Pre-Render or override render

Bronze Super Contributor
Posts: 1,231
Country: USA

Pre-Render or override render

           

 

Is there a way to overload or override APFW page rendering / pre-render.

Something like this would be nice.

 

Protected Overloads Overrides Sub Render(ByVal writer As HtmlTextWriter)

           ' String to hold the rendered code
           Dim Output As String = ""
           Using sw As New StringWriter
                      Using w As New HtmlTextWriter(sw)
                                 MyBase.Render(w)
                      End Using
                      Output = sw.ToString()
           End Using
           Output = Output.Replace("type=""" + "text" + "", Chr(34) + " ACTField=" + Chr(34) + Me.ACTField + Chr(34) + " type=""" + "text" + "")

           writer.Write(Output)

End Sub

 

 

Thanks

-- Jim Durkin