# ASP.NET quick (hopefully) question from an ActionScript developer

**URL:** <https://forum.kirupa.com/t/asp-net-quick-hopefully-question-from-an-actionscript-developer/330035>\
**Category:** programming\
**Created:** [November 21, 2012, 2:55pm UTC](https://forum.kirupa.com/t/asp-net-quick-hopefully-question-from-an-actionscript-developer/330035 "2012-11-21T14:55:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![e\_v](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/e_v/32/7787_2.png) [@e\_v](https://forum.kirupa.com/u/e_v)\
**Post date:** [November 21, 2012, 2:55pm UTC](https://forum.kirupa.com/t/asp-net-quick-hopefully-question-from-an-actionscript-developer/330035/1 "2012-11-21T14:55:44Z")

</div>

Can someone please tell me how to do the equivalent of calling a static function from an aspx page written in VB? I am not an [ASP.NET](http://ASP.NET) developer–I’ve inherited this project–but I can manage it if I know how to do this:  
[LIST]  
[_]Write the public static function and save it in a file:  
[LIST]  
[_]What is that file’s extension?  
[\*]Can you please give me a simple example of what it contains? Does the code have to be surrounded with \<% %\>?  
[/LIST]

[\*]Include/import/whatever that class/code in an aspx file and call the static function, like this:  
[/LIST]

```auto
dim myVar As String = MyClass.doSomething(myInt)

```

Can the file containing the reused code be in the same directory as the pages reusing the code?
