|
Creating your own News Item Types |
Top Previous Next |
|
Here is the same code for how to create a News Item Type. The following example accepts an aspx page as the val_ParameterString and runs the ASPX and returns a string that contains the output from the ASPX page.
Public Class ASPXPage Public Function Draw(ByVal val_Name As String, _ ByVal val_ParameterString As String, _ ByRef ref_PageVariables As WebAndFlo2006Lib.PageVariables) As String Draw = "" Try Dim loc_page As String Dim loc_out As System.IO.TextWriter = New System.IO.StringWriter
loc_page = ref_PageVariables.SessionVariables.Evaluate(val_ParameterString, ref_PageVariables.SessionVariables) Call ref_PageVariables.SessionVariables.Server.Execute(loc_page, loc_out)
Draw = loc_out.ToString Catch e As Exception LogError.LogError(e) End Try End Function End Class |
<%www.webandflo.com%>