我如何在gridview中使用计时器..

编程入门 行业动态 更新时间:2024-10-11 11:15:10
本文介绍了我如何在gridview中使用计时器..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我如何在gridview中使用计时器...例如..如果网站用户上传他的产品图片进行广告...特定日期(7天或15天)......完成后期间,广告将自动删除...并保存开始时间和结束时间...

how i can use the timer in gridview...eg..if user of site going to upload the image of his product for advertising...for particular day (7 days or 15 day)...after completion of the period ,advertise will be automatically delete...and save the start time and end time...

推荐答案

你不是很清楚你到底是什么想要,但我最好的猜测是你的用户将上传一张图片,你会在其他页面上将该图片作为广告显示一段时间,之后你将停止显示它。 简单。 你有一个数据库表包含图像(或指向它们的指针,但是你存储它们)和两列table定义用户已支付的广告系列的开始日期和结束日期(和时间)。 在检索广告的SQL中,您限制它目前直播的广告 - 即 You aren''t very clear with exactly what you want, but my best guess is that your user will upload an image, and you will display that image on other pages as an advert for a period of time, after which you will stop displaying it. Simple. You have a database table containing the images (or pointers to them, however you are storing them) and two columns on that table define the start and end date (and time) of the ''campaign'' the user has paid for. In the SQL that retrieves adverts, you limit it to adverts that are currently ''live'' - i.e. where GetDate() between startDate and endDate

所以你永远不会显示已过期(或尚未开始)的广告

so you will never display adverts that are expired (or haven''t started yet)

更多推荐

我如何在gridview中使用计时器..

本文发布于:2023-11-27 16:28:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638748.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:计时器   如何在   gridview

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!