Monday, March 26, 2012

AJAX Timer, UpdatePanel and AdRotator problem

Hi,

I try to use an AJAX updatepanel with a timer and a AdRotator on my MasterPage and my search engine stop working fine when the timer update the updatepanel.

I have some links who gives parameters to my search engine (like : ...find.aspx?search=0&TS=1&Sort=date_de&D=1000000&CP=&QPP=5&Cat=12000&SubCat=0&T=131400)

But when the timer update the updatepanel (so the AdRotator too), if i click again on these links, the search engine return no results...

Very strange behavior...

Someone have an idea why this happen with these AJAX controls?

Thanks

My code :

...
<td align="center" style="border-bottom: lightgrey thin dotted">
<asp:Timer ID="Timer1" runat="server" Interval="15000">
</asp:Timer>
<asp:UpdatePanel ID="UpdatePanelAdRotator" runat="server" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" />
</Triggers>
<ContentTemplate>
<asp:AdRotator ID="AdRotator1" runat="server" Height="60px" Width="468px" BorderColor="Black"
BorderStyle="Solid" BorderWidth="1px" DataSourceID="XmlDataSource1" Target="_blank" />
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/ads.xml"></asp:XmlDataSource>
</ContentTemplate>
</asp:UpdatePanel>
</td>
...

Hi,

Can you be more specific about how do you implement the search engine?

Does the link's url remain valid after the updatePanel updates?


Hi,

my search engine is a Stored Procedure that gets the results from a SQL 2005 database.

I call the Stored procedure at page load (search.aspx) with the parameters who are passed from the previous page.

Exemple : search.aspx?search=nintendo&TS=1&Sort=date_de&D=1000000&CP=&QPP=5&Cat=0&SubCat=0&T=131400


Do those query strings still exist after the updatePanel updates?

No comments:

Post a Comment