code_junkie

How do I handle events from an object saved as a property of a user control?

Nov 12th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Public Property Item() As Widget
  2. Get
  3. If ViewState("Item") IsNot Nothing Then
  4. Return DirectCast(ViewState("Item"), Widget)
  5. End If
  6. Return Nothing
  7. End Get
  8. Private Set(ByVal value As Widget)
  9. ViewState("Item") = value
  10. End Set
  11. End Property
Add Comment
Please, Sign In to add comment