从Shared Sub中强制UpdatePanel.Update()

时间:2013-01-16 11:34:54

标签: asp.net vb.net webmethod subroutine

有没有办法在UpdatePanel1.Update()内执行Shared Sub

收到错误:Cannot refer to an instance member of a class from within a shared sub ..

<WebMethod()> _
Public Shared Sub DoSomeStuff(ByVal Param1 As String)

    // do some stuff and then update the updatepanel
    UpdatePanel1.Update() // not a valid code


End Sub

任何建议都非常感谢。

0 个答案:

没有答案