troubleshooting Question

Custom Control Basics

Avatar of Nugs
Nugs asked on
C#
10 Comments1 Solution1034 ViewsLast Modified:
This is my first attempt at building a custom control. I have the basics of it working. The control renders some JavaScript blocks and some HTML onto the page it is added to.

I would now like to be able to pass in values to the custom control on Page_Load (or whatever) of the page rendering the control.

My control uses the protected override void OnPreRender(EventArgs e) to do allot of the Javscript rendering. I have tried to build properties in the control to accept values but i am having trouble getting the page to load these variable into the control before it is rendered on the page.

My understand of how this works is nonexistent. So i guess i am asking for a good resource of information on building Custom Controls that can be "set" from the page loading it.

Nugs
ASKER CERTIFIED SOLUTION
Ramuncikas

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros