I have a ASP.NET web app with a common module. How can I access the Public functions in the common module from the 'in-line' scripts in the ASPX page?
...from the ASPX page...
<asp:Label runat="server"
BackColor='<%# System.Drawing.ColorTranslator.FromHTML(Module1.Wa rnLOS(Module1.LOSMinutes(DataBinder.Eval(Container .DataItem,"vAdmDtTm"))))%>'
Text='<%# DataBinder.Eval(Container, "DataItem.rmDesc")%>'
ID="Label2">
</asp:Label>
The Public functions in the common module (WarnLOS and LOSMinutes) do some conversions, but I reuse these function in a lot of the pages - so I wanted to put them in one place - the common module.
THE PROBLEM: I get this error:
Compiler Error Message: BC30451: Name 'Module1' is not declared.
When I try to access the functions from the common module. How do I declare Module1 from the in-line scripts?
--------------------------------
From: kevin buchanan
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>fmKso6cO406+yl6+DmYXSw==</Id>