Hi,
I've installed Visual Web Developer 2005 Express, and I've created a web site and done various things. I'm trying to get a little more in depth, so I thought I'd do the old trick with access, where you set a break point and look at the values in the objects.
I've created a treeview control, and set a breakpoint on the 'load' event. Using c#, the two parameters are sender (object) and e (EventArgs). Looking in the 'locals' view, I can see the 'sender' variable, and it contains a number of elements, e.g. CollapseImageUrl, ExpandDepth etc.
In the immediate window, if I type:
?sender.ExpandDepth
I get the error message "'object' does not contain a definition for 'ExpandDepth'"
Can someone tell me where I'm being stupid? - I can see 'sender' with the attribute 'ExpandDepth' has the value of '0' in the locals window, so how come I can't get at it in the immediate window?
Many thanks in advance
Carl.