> I have a page with 2 web controls. WC2 is inside WC1 as follows:
>
[quoted text clipped - 17 lines]
> I added on WC2 Load event the code Response.Write(Me.MyVal). I get
> nothing.
It sounds like you may be doing this in the wrong order. When you
click to edit the GridView, the postback will first run the Load event
handlers for WC1 and WC2. The last thing to be run is the WC2
RowEditing event handler. So, at the time of WC2.Load, the Edit event
code has not been executed, so the value has not been set. The WC2
code which uses the property MyVal needs to be called after the
RowEditing event in WC1. If you put it in its own method, you could
call it:
'Inside the WC1 RowEditing event
WC2.MyVal="Test"
WC2.MyFunctionName()
This will run the function in WC2 after the MyVal has been set.
HTH,
-E