如何在ASP.NET中动态运行进程 [英] How to dynamically run process in asp.net
问题描述
我正在设计一个网站,它使用Windows窗体(在Visual Studio 10中),例如,我有五到六个URL.现在,我将它们显示在我的网站xyz.com的主页上
我要的是,我要计算总数.所有链接的推文数量,并根据否显示链接.有时他们会在Twitter上发布/转发.
对于网址,我们可以计算出否. Twitter api
I am designing a website and it uses Windows Forms (in Visual Studio 10) in which for example i have five-six URLs. Now i am displaying them on home page of my website xyz.com
What i want is, i want to calculate total no. of tweets for all links and display links based on no. of times they are being tweeted/retweeted.
for a url we can calculate no. of tweet using twitter api
http://urls.api.twitter.com/1/urls/count.json?url=YourURL
我知道所有这些东西,例如在字符串中接收JSON值并解析json以检索推文计数,然后根据优先级等比较和显示链接.
到目前为止,我一直在使用Click_Button启动所有过程.
但是我想知道如何每10分钟自动完成一次.就像最终用户只需刷新页面就可以看到url优先级.
I know all the stuff like receiving JSON values in a string and parsing json to retrieve tweet counts and then compare and display links based on the priority etc.
What i have been using till now it is initiating all the process using a Click_Button.
But i want to know how can i automate this all for each 10 minutes. Its like a end user can see urls priority with just refreshing the page.
推荐答案
1)您不会使用Windows Forms设计网站,使用asp.net.
2)仅使用网站显示收集和存储在数据库或某种数据文件中的数据.
3)使用在计时器上运行的Windows服务来收集信息并将其存储在某种数据库或数据文件中.
切勿尝试对Web应用程序本身做太多事情.系统和数据处理过程应从单独的过程处理.
1) You wouldn''t be using Windows Forms to design a website, you are using asp.net.
2) Use the website only to display data gathered and stored in a database or data file of some sort.
3) Use an Windows Service running on a timer to gather the information and store it in a database or data file of some sort.
Never try to do too much with the web application itself. System and data manipulation processes should be handled from separate processes.
这篇关于如何在ASP.NET中动态运行进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!