In DS.ascx, I have 40 input controls like textboxes, dropdownlist, checkbox, etc. and save buttons etc....
I used this DS.ascx in another control (by dragging and dropping into) "UseDSControl.ascx" by using the following code:
: g_ctlDS = LoadControl("ctlDS.ascx")
and then when I try to set the control default value (or) accessing values for textbox, it says txtname/chkallow not available. Because it's protected in ctlDS.ascx, I changed it to "public withevents txtname as textbox" but it automatically changes back.
see the following: how to do this in ctlUseDSControl.ascx.vb
without writing public properities for each control to set/get values in ctlDS.ascx:
if g_ctlDS.chkAllow then
'call function 1
'call function 2
Please let me know ASAP.
Thanks for your help in advance.