c# - How to call method inside of usercontrol which is nested inside of RadDockableObject from content page? -


This is my code. I am playing ASP.NET UserControl and with features, but I have specific rules Need to call me. Can anyone tell me how to do this?

  var usercontrol = (UserControl) RadDockableObject1.FindControl ("ControlName"); Usercontrol Valid = true; Usercontrol.methodName ();  

You have to enter it for the proper type. You are currently casting it to userstrokes. This will give you access to a set of properties and methods, but not all. Cast it for a special type and you will have access to everything. Everything that is not private ...


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -