Im trying to basically transfer asp.net pages into modules, so what ive done on here (in order to avoid posting 1000 lines) is to recreate simple parts of the pages. I posted above the call to the function and the function itself. Everything else is noted above regarding the formation of the ascx files. So its just going
Main.ascx.vb:
(imports section)
Namespace StaffLookup
Public Class Main
Inherits PortalModuleBase
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Public Function ProcessPictures() As String
Return "http://info/scripts/personnel/IDVerify/BadgePictures/transparent.jpg"
End Function
End Class
End Namespace
Main.ascx:
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Main.ascx.vb" Inherits="StaffLookup.Main" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<img src='<%# ProcessPictures()%>' />
</form>
</body>
</html>
My designer file i had to manually add Inherits PortalModuleBase into the class because Visual Studios did not add it automatically. My question is what else could be missing in order to make main.ascx.vb see functions (or other subs) within the namespace of Main.ascx.