Weird... here's the entire code of a sample page that's erroring... just in case I missed something (I only changed the main project name to MyProject for security reasons). The solution has two projects, UserInterface and BusinessLogic. The BusinessLogic project is just a bunch of classes.
----ASPX page
<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/MyProject.Master" CodeBehind="zTestForForum.aspx.vb" Inherits="UserInterface.zTestForForum"
title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<%#f_MyFunction(1)%>
</asp:Content>
----CodeBehind
Public Partial Class zTestForForum
Inherits System.Web.UI.Page
Public Function f_MyFunction(ByVal ID As Integer) As String
Return ID.ToString
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
End Class
Thanks,
Dan