怎样使我的站点能发布rss链接 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ Page language="c#" Codebehind="SiteMap.aspx.cs" AutoEventWireup="false" Inherits="Photo.SiteMap" %><?xml version="1.0" encoding="UTF-8" ?><!-- generator="http://www.homegx.com/"--><urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd"><asp:Repeater id="list_photo" runat="server"><ItemTemplate><url> <loc>http://photo.homegx.com/<%#DataBinder.Eval(Container.DataItem,"ID")%>.html</loc> <lastmod><%#DataBinder.Eval(Container.DataItem,"DateAndTime","{0:yyyy-MM-ddTHH:mm:ssZ}")%></lastmod> <changefreq>hourly</changefreq> <priority>0.8</priority></url></ItemTemplate></asp:Repeater></urlset>我是这样输出~~ 能发布rss链接 ???RSS就是一种XML格试的东西.比如:你要显示某一类的文章须要一个TypeID吧?你可以去表中或是别的源中找到这些文章然后可以循环打印出符合RSS的Item标记的字符串(前面还要加上RSS 头标记--具体的去查RSS规范).然后输出到页面上.注:Response.ContentType="text/xml";这样.别人用读RSS的软件连到你的输出RSS字符串的网页上,就可以看到相应的文章了这是我的理解.不一定对.仅供参考 微软自带的正则表达式! 如何实现统计回复数量 IList的疑问,新手问题~~~~高手来帮忙~~~~~ JS编码 浏览.net网页是否要求用户浏览器装.netFrameWork? 图片显示~~~~急 关于Dropdownlist控件的 的级联 C# 实现 datagrid要显示的字段太多怎么处理最好? asp.net talbe求救 谁有VS2005简体中文版的下载地址给我一个好吗? 问题100分 用asp.net(c#)怎么生成rss好供别人订阅????
<?xml version="1.0" encoding="UTF-8" ?>
<!-- generator="http://www.homegx.com/"-->
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
<asp:Repeater id="list_photo" runat="server">
<ItemTemplate>
<url>
<loc>http://photo.homegx.com/<%#DataBinder.Eval(Container.DataItem,"ID")%>.html</loc>
<lastmod><%#DataBinder.Eval(Container.DataItem,"DateAndTime","{0:yyyy-MM-ddTHH:mm:ssZ}")%></lastmod>
<changefreq>hourly</changefreq>
<priority>0.8</priority>
</url>
</ItemTemplate>
</asp:Repeater>
</urlset>我是这样输出~~
RSS就是一种XML格试的东西.比如:你要显示某一类的文章
须要一个TypeID吧?
你可以去表中或是别的源中找到这些文章
然后可以循环打印出符合RSS的Item标记的字符串(前面还要加上RSS 头标记--具体的去查RSS规范).然后输出到页面上.
注:Response.ContentType="text/xml";
这样.别人用读RSS的软件连到你的输出RSS字符串的网页上,就可以看到相应的文章了这是我的理解.不一定对.仅供参考