dave

dave

  • NA
  • 1
  • 0

custom controls and masterpages

Jun 24 2006 6:00 PM
Hi - I'm utilising a MasterPage that contains a custom control (.ascx) that will display an advertisement - either a google ad or custom ad. Now I've got other pages (.aspx) within the website that include the MasterPage, as well as another custom control that displays other content. This other content is what determines the advertisement type to display in the MasterPage code.

Now it seems that when the .aspx pages load, the MasterPage content is loaded first (which includes the .ascx advertisement code), followed by the content on the .aspx (which includes the .ascx for the content that determines the advertisement type). So obviously this means the advertisement .ascx can not determine the content type to properly decide which advertisement type to display.

Any suggestions will be greatly appreciated?

tia.

daz

Answers (1)