I have an 100 aspx files with one module file for code. All these aspx files have the same backend function, so i created on public module for all these files to access. These files are in the same folder. But for some reason the aspx files cannot access the function from that module.
mod1.vb Code (.vb file)
Public Module Allinone
Sub Allinone_Load(ByRef Page As Web.UI.Page)
End Sub
End Module
code in aspx file - (a1.aspx - one of 100 aspx files, they all shall have same starting script)
<%@ Page Language="VB" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Allinone_Load(Page)
End Sub
</script>
I am at a roadblock of why the aspx files wont read this module? Also all these files are in the same directory