Render a custom control inside a specific placeholder

N

nail

Hi.
I do a custom control and it works fine.
But now, I need to render it in a placeholder. This placeholder will be pass
to the custom control by an property.
I test something here, catch the correct placeholder on the page and when
the render method of the custom control will run I got this error:


A value of type 'System.Web.UI.WebControls.PlaceHolder' cannot be
serialized.


Someone know how can I do that?

Thansk in advance.
 
N

nail

Thanks Tom.
Really, I were not so clear.
But what am I really need is what you wrote, pass the ID of the placeholder.
I tried it and worked.

Thank you again.

nail
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,088
Latest member
JeremyMedl

Latest Threads

Top