How to insert custom HTML code for each blog entry?

Topics: ASP.NET 2.0, Controls
Oct 1, 2009 at 8:23 PM
Edited Oct 1, 2009 at 8:24 PM

Hi there.   Our blog is here: and uses SQL.

What I want to do is insert HTML code at the beginning of each displayed blog entry.  All I need to do is "grab" the user's email address into a variable, then execute a VB function that I will write.  The function will craft the HTML code.  For example, somewhere in one of the blogengine pages I want to call a routine  GetCode(UserEmail)

And my routine, written in VB looks like this:


Function GetCode (by val UserEmail as string)

  • Dim HTML as string
  • <more stuff here>
  • Response.Write (HTML)
  • Return Nothing

End Function


Where can I insert my function call so that the Response.Write occurs as the first HTML in a blog post, and second, how do I "grab"  the user's email address to pass to the function?