简体   繁体   English

跟踪网页更改的asp.net页面?

[英]A asp.net page that tracks changes of a web page?

An asp.net page that tracks a web page changes. 跟踪网页更改的asp.net页。 and if any changed occurred then it should send mail to my mailbox which I have configured using smtpclient. 如果发生任何更改,它应该将邮件发送到我使用smtpclient配置的邮箱。

I've coded for this task, but don't know where to place the code which section is executed always? 我已经为该任务编写了代码,但是不知道总是在哪个部分执行代码? Is there any possibility for this? 这有可能吗?

If not, then this page should be opened (viewed) always(24x7) or is there any way to open my asp.net page in the server? 如果没有,则应始终(24x7)打开(查看)此页面,或者有什么方法可以在服务器中打开我的asp.net页面?

It sounds like you want your "monitoring" code to run often (continuously?) and watch other pages to see if they change. 听起来好像您希望“监视”代码经常(连续地)运行,并查看其他页面以查看它们是否更改。

You will need something repetitive: like a windows service. 您将需要重复的内容:类似于Windows服务。 This has been my option when I've needed to do this. 当我需要这样做时,这是我的选择。 Other options, although I have no personal experience, include Quartz.Net that allows you to schedule ASP.NET tasks. 尽管我没有任何个人经验,但其他选项包括Quartz.Net,它允许您安排ASP.NET任务。

However, this is precisely why RSS was invented. 但是,这正是RSS发明的原因。 To allow others to passively monitor changes in websites. 允许其他人被动地监视网站的更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM