Hi,
I have just a little question, I just need a little push towards the right direction:
I have a file "my_app.vb" located in the "App_Code" directory of my ASP.NET application.
I now want to access a function which is located in that my_app.vb file from all over my aspx pages of my application.
I just need to know how to write a function that is accessible from all over my code.
The public const works, i can access it via my_app.HelloWorld , but i can access my function called MyFunction.
What am i doing wrong, please help me.
Heres the Code:
Imports Microsoft.VisualBasic
Public Class my_app
Public Const HelloWorld As String = "Yep Hello World!"
Public Function MyFunction() As String
MyFunction = "Yep I Can hear u !!"
End Function
End Class
Thank you in advance
Sascha
I have just a little question, I just need a little push towards the right direction:
I have a file "my_app.vb" located in the "App_Code" directory of my ASP.NET application.
I now want to access a function which is located in that my_app.vb file from all over my aspx pages of my application.
I just need to know how to write a function that is accessible from all over my code.
The public const works, i can access it via my_app.HelloWorld , but i can access my function called MyFunction.
What am i doing wrong, please help me.
Heres the Code:
Imports Microsoft.VisualBasic
Public Class my_app
Public Const HelloWorld As String = "Yep Hello World!"
Public Function MyFunction() As String
MyFunction = "Yep I Can hear u !!"
End Function
End Class
Thank you in advance
Sascha