我的代码叫WebMethod。 在那个WebMethod里,我需要创建一个新的控制收藏。 在 VB里,我通常会写:
Dim cc As System.Web.UI.ControlCollection = CreateControlCollection()
但因为我进入网络方法, 我得到错误:
Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.
Any suggestions please ? Thanks folks !