简体   繁体   English

ASP.NET Web窗体-全局过程

[英]ASP.NET Web Forms - Global Procedures

is there a way to create a page similar to a module in windows form projects where I can have multiple procedures/functions and to be able to call and access them from multiple pages? 有没有一种方法可以在Windows窗体项目中创建类似于模块的页面,因此我可以拥有多个过程/功能,并能够从多个页面调用和访问它们? Thank you. 谢谢。 - Gabe -加布

Modules are a VB.Net feature, available in all VB.Net project types. 模块是VB.Net功能,可在所有VB.Net项目类型中使用。

In C#, you can create a static class . 在C#中,您可以创建一个static class

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM