问题描述
<DefaultProperty("Text"),ToolboxData("<{0}:NewDataGridrunat=server></{0}:NewDataGrid>")>PublicClassNewDataGridInheritsSystem.Web.UI.WebControls.WebControlPublicEventBindMyGrid(ByValsenderAsObject,ByValeAsSystem.EventArgs)publicFunctionFillDataGrid()AsBooleanRaiseEventBindMyGrid(Me,NewEventArgs())endfunctionendclass在应用该控件时,无法触发该事件,为什么啊PrivateSubNewDataGrid1_BindMyGrid(ByValsenderAsObject,ByValeAsEventArgs)HandlesNewDataGrid1.BindMyGridresponse.write('a');EndSub
解决方案
解决方案二:
Web比较特别要引发事件,必须激活自动回调
时间: 2024-12-05 08:14:14