It's basically the same thing. C# does not have an equivalent of
'withevents', but the rest translates directly.
You don't actually have any events wired up in what you described - if you
declare a variable at the top of the page, you can then access that variable
in Page_Load, since that is just a method in the page.
"Norton" <th********@hotmail.com> wrote in message
news:eK*************@tk2msftngp13.phx.gbl...
I have dropped a user control onto my .aspx web form.
In VB.Net, I could add:
protected WithEvents myucTest as ucTestCtl
Then, within page load or anywhere else, I could reference the control as
me.myucTest.
How do I do this in C#? I know I probably need a delegate but I am not too
skilled in doing this. Can someone send me a snippet of C# on how to do
this?
Thanks!