I have a procedure "Protected Sub BtnDimSubmit_Click(sender As Object, e As EventArgs) Handles BtnDimSubmit.Click"
In my immediate window I can view the sender information
"?DirectCast(DirectCast(sender,System.Web.UI.WebControls.Button)._page,ASP.quotes_aspx).DDLcontainer2.SelectedValue"
The value returned is ("DRM") which is correct.
I need to test the value at run time however when I try to use the "DirectCast(DirectCast(sender,System.Web.UI.WebControls.Button)._page,ASP.quotes_aspx).DDLcontainer2.SelectedValue"
I get an error before I even run it stating " 'system.web.ui.control._page' is not accessible in this context because it is 'friend' "
I've tried assigning the statement to a string and object with no luck.
Any Ideas
Thanks
-dan