How do I get a aspx page function in App_code class file in asp.net 2.0.
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
How do I get a aspx page function in App_code class file in asp.net 2.0. please sent a demo code.
You cannot get a function defined in the aspx code behind file in the App_Code class file. Because the instance of the aspx class is created based on the request by the browser in IIS at run time. You can try a static function but it isn't good practice. You need to define the functions used across the application in another App_Code class file.