code_junkie

Events on ASP.NET UserControl raise every other click?

Nov 12th, 2011
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. +------------+
  2. | Box Title |
  3. +------------+
  4. | / |
  5. | < X > |
  6. | / |
  7. +------------+
  8.  
  9. RaiseEvent WidgetMoved(Me, New WidgetMovedEventArgs(WidgetMoveDirection.Up, widgetIDField.Value))
  10.  
  11. For i as Integer = 0 To count
  12. Dim widget As MyWidget = widgets(i) '' widgets is a collection
  13. Dim box as controls_CustomizeWidget = BindWidget(WidgetColumns.Left, i, count, widget) '' This simply uses LoadControl and places the control in one of two placeholders
  14. AddHandler box.WidgetMoved, AddressOf widget_WidgetMoved
  15. AddHandler box.WidgetVisibleChanged, AddressOf widget_WidgetVisibleChanged
  16. Next
Add Comment
Please, Sign In to add comment