Search:
Namespaces
Discussions
.NET v1.1
Feedback
Setting User Control Properties in Code Behind
Details
Related Types
Site:
DotNetJunkies
Original URL:
http://www.dotnetjunkies.com/HowTo/E1F97CE9-7834-46FA-BED9-866F720AB013.dcik
Summary:
I'm trying to pass a value to a user control by setting a property. I'm using code behind. How do I pass a value to the user control? Answer: In code behind you have to create an instance of the user control, the same way you would for any server control. You map an instance of the user control's class the user control instance in the Web Form.
System.EventArgs
System.Web.UI.UserControl
System.Windows.Forms.UserControl
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com