Hi All, I have a customer who wants and AdRotator and I decided to do it in as an ASPX module,
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Timer ID="Timer1" Interval="3000" runat="server">
</asp:Timer>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
</Triggers>
<ContentTemplate>
<asp:AdRotator ID="AdRotator2" runat="server" AlternateTextField="Specials"
AdvertisementFile="~/Advertising/Advertisments.xml" Height="160" Width="160" />
</ContentTemplate>
</asp:UpdatePanel>
It all seems so simple, I then added my module to the two-column Master and it works just fine. But then when I click on a link to a product I get this:
Server Error in '/' Application.
Only one instance of a ScriptManager can be added to the page.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Only one instance of a ScriptManager can be added to the page.
Source Error:
Line 50:
Line 51: child = base.LoadControl(productTemplate.TemplatePath);
Line 52: this.ProductPlaceHolder.Controls.Add(child);
Line 53: }
Line 54: }
:) I just feel I'm missing something obvious here, what am I doing wrong?
Regards
Mike
ps. I'm going to do a bit more work in this, once I get it functioning, I'd like to do a 'best sellers' rotator module. Then I post it back for everyone to use.