使用asp.net在网页中创建新闻 [英] create news in the web page with asp.net

查看:62
本文介绍了使用asp.net在网页中创建新闻的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我想在我的网站第一页创建10条新闻。像yahoo

with asp.net和sql2005

can你帮我吗?



谢谢

hello
I want create 10 news in my web site at first page.like yahoo
with asp.net and sql2005
can you help me?

thanks

推荐答案

首先,你需要订阅一个新闻网站它包含您可以在客户端使用的网络服务或RSS订阅源。

Google新闻API [ ^ ]将是一个不错的开始示例。



然后在您的客户端页面中,使用此Feed并作为最低要求构建一个每隔几分钟刷新一次的网站。

这将是您网站的最基本内容。



这两个例子可以帮助您入门

MyFeedRe ader - 使用ASP.NET 3.5,LINQ,WCF Syndication API和AJAX的简单提要阅读器 [ ^ ]

ASP.NET AJAX RSS阅读器 [ ^ ]
First of all, you need to subscribe to a news site which has a web service or rss feed that you could consume in your client.
Google News API[^] would be a decent starting example.

Then in your client page, consume this feed and as a minimum requirement build a website that refreshes every few minutes.
This would be the very basic of your website.

These two examples could help you get started
MyFeedReader - A simple feed reader using ASP.NET 3.5, LINQ, WCF Syndication API and AJAX[^]
ASP.NET AJAX RSS Reader[^]


这篇关于使用asp.net在网页中创建新闻的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆