Modify a placeholder

  • Thread starter Thread starter Andrea
  • Start date Start date
A

Andrea

How is possible to modify a placeholder contained into a an ascx file referended
by a page?
I've tried to do it in the page_load event, declaring before a protected
variabile, but it's out of scope.
I've noticed that ascx file will be loaded just after the page_load event,
but in the page_unload when
the control comes back to the page, all the refecence has been destroyed.
Any idea how to do that?

thanks
Andrea
 
dim ph as placeholder =
FindControl("ASCX_CONTROL_ID").FindControl("PlaceHolderID")
 
Hello (e-mail address removed),
dim ph as placeholder =
FindControl("ASCX_CONTROL_ID").FindControl("PlaceHolderID")

Placed where?
I tried both in load and uload ... but the first findControl returns null.

Does it matter the fact that I'm using the masterpages?

Andrea
 
Does it matter the fact that I'm using the masterpages?
Yes, that's the problem, the masterpages are recognized as a control, that's
why I don't find the control.
Thanks.

Andrea
 

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

Back
Top