如何在不同的Web项目中将一种Web窗体方法用于另一种WebForm. [英] How do I Use One Web Form Method to Another WebForm in different Web Project.
本文介绍了如何在不同的Web项目中将一种Web窗体方法用于另一种WebForm.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设一个名称为Default.aspx的网站并包含任何方法,假设GetDataTable().
然后,如何在另一个具有不同项目的WebForm中使用该方法GetDataTable..
Suppose one Website having name Default.aspx and contain any mathod Suppose GetDataTable().
Then How Do I use that method GetDataTable in another WebForm Having Different Project..?
推荐答案
将该方法移至DLL并将DLL放入BIN文件夹中. br/> 然后,您可以从任一页面访问它.
Move the method into a DLL and put the DLL in the BIN folder.
You can then access it from either page.
这篇关于如何在不同的Web项目中将一种Web窗体方法用于另一种WebForm.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文