Microsoft
Software
Hardware
Network
Question : Get property in dynamic Web User Control from an Aspx page
Hi,
I have a default.aspx containing a web user control. This web user control is dynamic, it could be one of 10 web user controls and is set in the Page_Init.
When a page called departments.ascx is loaded, I need to access a public property on this web use control. The property code is as follows:
-------------------
public RadTreeViewContextMenuEven
tArgs R1
{
get
{
return R1;
}
}
--------------------
Now I'm trying to access this property from the parent page which is default.aspx. I don't know how to access the property R1 as the web use control is loaded dynamically. Visual Studio doesn't seem to like anything I code to access this property. The closest I can get to it with VS intellisense is:
---------------------
RadTreeViewContextMenuEven
tArgs R1 = ((department_setup_wuc)Pag
e).R1;
---------------------
However that throws the error:
Error 3 Cannot convert type 'System.Web.UI.Page' to 'OnTime.department_setup_w
uc' C:\Inetpub\wwwroot\OnTime\
OnTime\Def
ault.aspx.
cs 238 51 OnTime
Any help is much appreciated. Thanks!!
Answer : Get property in dynamic Web User Control from an Aspx page
you will have to move them to Exchange 2010 before using discovery and search on those mailboxes
Random Solutions
NAT ROUTE on ASA from OUTSIDE MAIL SERVER on DIFFERENT IP SPACE
DAG & CAS array configured but it's not failover
Multiple Dll's in Delphi
Symantec BackupExec 2010 VMware ESX 3.5 x64 guests fails with 'An attempt to take a snapshot of a virtual machine failed because it was unable to quiesce an application'
please help with this xml as2 code
How can the AD objects deletion reflect in WSUS console immediately.
usb printer stopped working and cannot re-install
How to get past login page strRequestHTML Post
BULK UPDATE
How can I display previous month's records in January?