asp.net - How do I access a module or a public class with public shared members from inline vb code <% .. %> -


i can access module code behind not aspx page in inline vb code <% ... %>.

i know got simple can't seem find answer anywhere.

if want run static method aspx can this:

<% mynamespace.myclass.mymethod() %>

if want instancate object , call method on can well:

<%     dim obj mynamespace.myclass     obj = new mynamespace.myclass()     obj.mymethod() %> 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -