Web Forms :: Use Caching With AdRotator's Images?
Mar 31, 2010
I want to implement the functionality like below.
1) Use AdRotator to view the Ads.
2) Change Ads on every 15 sec.
3) When user is on page where Ads are displayed now user clicks Back-Forward and come back to that page. This time if user come back within 15 sec. Same image will be displayed and no money will be diducted for that. So here I will need to show Image from cach.
4) Only once load images from server. For each other cycle to display images fetch it from cach.
I have difficulty in implementing Steps 3 & 4.
View 4 Replies
Similar Messages:
Aug 18, 2010
How do I implement partial page caching with an AdRotator control? I know it's supposed to do it automatically, but I'm using the AdCreated event to handle stats, and this seems to cause the ad to be cached along with the rest of the page.
View 4 Replies
Jul 5, 2012
how to use adrotaror on a page the pictures reside on Database
View 1 Replies
Aug 13, 2010
can the images displayed through the AdRotator control be changed automatically without using refresh button?
View 2 Replies
Mar 28, 2011
I have implemented a adrotator to display random images using ajax. I also need to display another image at left side corner on the adrotator image continously.
View 4 Replies
Mar 31, 2010
I've been trying to get image caching working for the last 8 hours and I keep the same problem time and time again, I'm trying to cache Images at the moment and then when thats succesful, apply this to cache my js and css files. I have at the moment Sql Dependancy caching working on my dynamic pages but the page still takes to long due to images not caching.
What I have tried is going to IIS7 Management and adding HTTP Response Header for the images folder and setting various things for the cache control.i dont care how long it caches it on the client or on the proxy servers i just would like it to check when the file was modified and compare it with the one in the client or proxy cache and if they are different then fetch the new image which has been ftp up. i could solve this by changing the image name but the thing is the image name is generated when they are ftp'd to the site by an application and the name is a direct reference to the product so i cant change the name each time, as it would mean making a lot of otherpages accross the board.
so What i would like, is to set and expiry date of lets say 32 days or more on the images and then check to see if they have changed by date modified or some other way of checking(Etags maybe) I'm not sure, if they have changed on the server then redownload and recache them, I tried using post-check and pre-check together but that just permantly cached them, so when i change the image the only way it would display the new image is to just hit F5.
In Brief, how can i Cache images, on the client machine/ proxy cache and recache them when the modified date of the file has changed.
View 4 Replies
Feb 1, 2011
i recently made a website and have uploaded it to a hosting server. After i had completed the website i noticed that i never added in any expiration onto the files/images plus that i dont know how to do this outside of IIS. As i dont have access to the IIS on the server i need a way of embeding code to set a short exportaion on the images and xml files cached. whats the best way of doing this?
View 5 Replies
Jun 18, 2010
i have implemented an image preloader using javascript inside my mvc 2 web app, in order to display an animated "loading" image .gif while sequentially displaying page images.I have also implemented caching using a cache profile for the controller action that displays the specific page ([OutputCache(CacheProfile = "LongCache")]).The problem is that the image preloader javascript is called when caching is applied. I was wondering whether i could, somehow, use the image preloader code only when the page gets refreshed and not when the cached version is rendered.
View 2 Replies
Jun 14, 2010
I have a page with a number of user controls, In one of my user controls I have a button event. I turn on output cache for the user control that has the button and vary by control using the ID property of a hidden field control in the user control. whenever I turn on the output cache my button event doesn't fire.
View 2 Replies
Jun 21, 2010
My adrotator binded to xml file cannot flash banners without refreshing aspx page Can u provide me some help please(code snippet)
View 1 Replies
Jul 4, 2010
I would need an ad rotator that shows different banners but that changes banner every 5 sec or so. Is it possible?The list of urlīs for the images comes from a database with linq2sql. Is there any other method, for example JQuery that someone could explain to me in case the ad rotator dont work?
View 2 Replies
Oct 19, 2010
I have a table in a sql db that is storing some images that will be display on a header of page.How can I display the images using the adrotator? I am working with C#. DB Table:HeadImgs
hID - ID
headImage - Image
published - varchar(5)
View 1 Replies
Jun 23, 2010
I am trying to load an AdRotator into my mast page. I have been able to get rid of the errors for it,
loaded the images into the images folder,
created the xml file which I just copied from microsoft website,
added the links for the images in the xml file.
Enabled it
set visibility to true
gave it height and width
Still nothing shows up when I run the site on the localhost. The page source doesnt mention anything of it either.Here is my code for the AdRotator: [Code]....
Here is my xml file: [Code]....
View 10 Replies
Mar 3, 2010
I am using an AdRotator Control which bind with SQLDatasource and it working fine My query is how to assign a CompanyName which is field in my SQL Table on the Tooltip property of the AdRotator Control.
Below is code i have applied just wanted for tooltip
<asp:Timer ID="Timer1" Interval="3000" runat="server" />
<asp:UpdatePanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:AdRotator ID="AdRotator2"
runat="server"
DataSourceID="SqlAdsRightImage"
ImageUrlField="ImageUrl"
NavigateUrlField = "NavigateUrl"
AlternateTextField = "AlternateText"
ToolTip = ? />
</contenttemplate>
<triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick"></asp:AsyncPostBackTrigger>
</triggers>
</asp:UpdatePanel>
<asp:SqlDataSource ID="SqlAdsRightImage" runat="server" ConnectionString="<%$ ConnectionStrings:sportcal2007ConnectionString %>"
SelectCommand="sp_AdsRightImage" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
View 3 Replies
May 15, 2010
how to implement caching in wcf service using System.Web.Caching
View 2 Replies
Nov 4, 2010
Is there a way to use two adrotators controls on one page and stop the same advert appearing at the same time in both controls?
I have the following but it doesn't work:
protected void AdRotator1_DataBound(object sender, EventArgs e)
{
if (AdRotator1 == AdRotator)
AdRotator1.DataBind();
}
View 5 Replies
Nov 5, 2010
I want the AdRotator control functionality where content pages on page load but instead of using images I want to use html and other controls like textboxes and buttons. Is this possible?
View 1 Replies
Sep 7, 2010
How can I use impression tag which is within advertisement
How it affects for different images...
View 1 Replies
Nov 9, 2011
I have a problem using the AdRotator control with Internet Explorer 8. It works fine with Mozilla Firefox but with IE8 neither the Ad image appear nor the NavigateURL work.Here's an example of the Ad code:
<Ad>
<ImageUrl>
/Images2/googleAd.gif
</ImageUrl>
<NavigateUrl>
[Code] ....
But again it works fine with Mozilla Firefox. I can't use the Mozilla Firefox instead, I have to use IE8 for certain reasons.
I'm using Visual Studio 2008, VB Web application.
View 5 Replies
May 11, 2010
NavigateUrlField does not work as expected! Althrough it is assigned properly MyAdRotator.NavigateUrlField = "AdvertURL" the rendered code is missing href attribute of the link e.g. <a id="blahblah" target="_blank">etc. I tried with absolute paths/urls and relative as well but, it still shows up only the images properly while link is missing.
View 5 Replies
Jan 26, 2010
I'm new to asp.net and got stuck on page 124-126(Build ur own asp.net web site.). I just cannot link the Ads.xml to the AdRotator file.
View 16 Replies
Apr 4, 2010
I can plug a http url into the adrotator fine but everytime I plug an https url in it give me a "cannot find advertisement file or file is invalid. I know these https urls are fine - I've checked them out. .
[Code]....
View 8 Replies
Jul 14, 2010
I am using asp.net with C#.
I have a adrotator which I am binding through the database. I have following column in database table
AdId
AdTitle
AlternateText
ImageUrl
NavigateUrl
[Code]....
displaying the text data on the right side of the adrotator, as it is only showing the data of the first record. might be because i have used Rows[0].
View 1 Replies
Feb 21, 2011
I was wondering, wether it is possible to use the Asp.net AdRotator to rotate through a List of links.
This would be my business class.
public class AdRotatorData
{
public String Name {get;set;}
public String NavigateURL {get;set;}
public String Description {get;set;}
}
I would like to bind a List to the AdRotator control and modify the output of the AdRotator control to display the Link rendering with the Name and NavigateUrl and some text from the Description property below.
Is such thing possible? The ComponentArt AdRotator component http://aspnetajax.componentart.com/control-specific/rotator/design/product_scroller/WebForm1.aspx provides such features, but I can't afford the entire control package.
View 1 Replies
Dec 5, 2010
If I am going to use the AdRotator with Database and set the properties from the table fields, how can I set the impression?
View 5 Replies