在pageload里加入如下代码:
If Me.IsPostBack = True Then
Dim sPostEventSourceID As String
Dim sPostEventArgumentID As String
sPostEventSourceID = Me.Request.Form.Get(Me.postEventSourceID)
sPostEventArgumentID = Me.Request.Form.Get(Me.postEventArgumentID)
End If
用sPostEventSourceID可以判断你是哪个web控件发的post,然后再掉你的方法