how to refresh only adrotator and not the web page
-
hi, i m developing a web system. i want to flash some news where i want only the news to be refreshed and not the whole page. i tried using add rotator along with ajax control i.e update panel, but still it is not working. can anyone provide me the code to do the same.
-
hi, i m developing a web system. i want to flash some news where i want only the news to be refreshed and not the whole page. i tried using add rotator along with ajax control i.e update panel, but still it is not working. can anyone provide me the code to do the same.
Well, AJAX is the only way to do it, unless you put the ad rotator in an iframe.
Christian Graus Driven to the arms of OSX by Vista.
-
hi, i m developing a web system. i want to flash some news where i want only the news to be refreshed and not the whole page. i tried using add rotator along with ajax control i.e update panel, but still it is not working. can anyone provide me the code to do the same.
have you placed that addrotator exectally inside the update panel do check it.. when you drag and drop the controls at design time some times it place the control outside...
Government Dyal Singh College Lahore.
-
Well, AJAX is the only way to do it, unless you put the ad rotator in an iframe.
Christian Graus Driven to the arms of OSX by Vista.
can you provide me the code please.
-
have you placed that addrotator exectally inside the update panel do check it.. when you drag and drop the controls at design time some times it place the control outside...
Government Dyal Singh College Lahore.
the ad rotator is exactly inside the update panel yet it is not working. can you provide me the code for it. thanks in advance.
-
Well, AJAX is the only way to do it, unless you put the ad rotator in an iframe.
Christian Graus Driven to the arms of OSX by Vista.
this is the code of my .aspx file <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <br /> <br /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br /> <br /> <asp:ScriptManager ID="ScriptManager2" runat="server"/> <asp:Timer ID="Timer2" runat="server" Interval="5000"/> <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="Timer2" EventName="Tick" /> </Triggers> <asp:AdRotator ID="AdRotator2" runat="server" AdvertisementFile="~/AdRotatorFiles.xml" KeywordFilter="small"> </asp:AdRotator> <ContentTemplate> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html> and in the .cs file i have written the following code. protected void Timer2_Tick(object sender, EventArgs e) { UpdatePanel2.Update(); Label1.Text = "Done"; } thanks in advance
-
the ad rotator is exactly inside the update panel yet it is not working. can you provide me the code for it. thanks in advance.
this is the code of my .aspx file <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <br /> <br /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br /> <br /> <asp:ScriptManager ID="ScriptManager2" runat="server"/> <asp:Timer ID="Timer2" runat="server" Interval="5000"/> <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="Timer2" EventName="Tick" /> </Triggers> <asp:AdRotator ID="AdRotator2" runat="server" AdvertisementFile="~/AdRotatorFiles.xml" KeywordFilter="small"> </asp:AdRotator> <ContentTemplate> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html> and in the .cs file i have written the following code. protected void Timer2_Tick(object sender, EventArgs e) { UpdatePanel2.Update(); Label1.Text = "Done"; } thanks in advance
-
this is the code of my .aspx file <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <br /> <br /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br /> <br /> <asp:ScriptManager ID="ScriptManager2" runat="server"/> <asp:Timer ID="Timer2" runat="server" Interval="5000"/> <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="Timer2" EventName="Tick" /> </Triggers> <asp:AdRotator ID="AdRotator2" runat="server" AdvertisementFile="~/AdRotatorFiles.xml" KeywordFilter="small"> </asp:AdRotator> <ContentTemplate> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html> and in the .cs file i have written the following code. protected void Timer2_Tick(object sender, EventArgs e) { UpdatePanel2.Update(); Label1.Text = "Done"; } thanks in advance
place add rotator inside content template... and check..
Government Dyal Singh College Lahore.