asp.net rss toolkit

STM32实战篇:使用USART发送/接收数据 在发送字符时也可以直接使用其对应的ASCLL码,例如: USART_SendData(USART1, 0x61); 阅读详情

ASP.NET RSS Toolkit

The RSS toolkit includes support for consuming as well as publishing RSS feeds in ASP.NET applications.  Features include:

  • RSS Data Source control to consume feeds in ASP.NET applications
    • Works with ASP.NET data bound controls
    • Implements schema to generate columns at design time
    • Supports auto-generation of columns at runtime (via ICustomTypeDescriptor implementation)
  • Caching of downloaded feeds both in-memory and on-disk (persisted across process restarts)
  • Generation of strongly typed classes for RSS feeds (including strongly typed channel, items, image, handler) based on a RSS URL (the toolkit recognizes RSS and RDF feeds) or a file containing RSS definition.  Allows programmatically download (and create) RSS channels using strongly-typed classes. The toolkit includes:
    • Stand-alone command line RSS compiler
    • Build provider for .rssdl file (containing the list of feed URLs)
    • Build provider for .rss file (containing RSS XML)
  • Support for generation of RSS feeds in ASP.NET application including:
    • RSS HTTP handler (strongly typed HTTP handlers are generated automatically by the build providers) to generate the feed.
    • RSS Hyper Link control (that can point to RSS HTTP handler) to create RSS links
    • Optional secure encoding of user name into query string to allow generation of personalized feeds
  • Set of classes for programmatic consumption  and generation of RSS feed in a late-bound way, without using strongly types generated classes

 

The toolkit is packaged as an assembly (DLL) that can be either placed in GAC or in ‘bin’ directory of a web application.  It is also usable from client (including WinForms) applications.

 

RSS Toolkit works in Medium Trust (RssToolkit.dll Assembly either in GAC or in ‘bin’) with the following caveats:

  • If the ASP.NET application consumes RSS feeds, the trust level must be configured to allow outbound HTTP requests.
  • To take advantage of disk caching, there must be a directory (configurable via AppSettings["rssTempDir"]) where the trust level policy would allow write access.  However, disk caching is optional.

 

Complete sources are included in the package.

 

This is v1.0 so of course there could be bugs…


Package Contents

bin/

binaries including RssToolkit.dll Assembly and Rssdl.exe command line compiler.

 

sources/

build.bat to build the binaries.  Note: if binaries are re-built then web.config file (and reference directive in pages) in the sample applications need to be updated to change the PublicKeyToken in the assembly reference.

 

sources/toolkit/

sources for RssToolkit.dll

 

sources/rssdl/

sources for Rssdl.exe, the command line RSS compiler

 

samples/

sample ASP.NET application both consuming and publishing RSS feeds


 

Scenario walkthroughs

The sample places RssToolkit.dll in GAC (one way to install it into GAC is to run “gacutil –i RssToolkit.dll”. The toolkit assembly can also be placed into ‘bin’ directory.

 

To add RSS controls to the VS toolbox, select ‘Choose Items…’ and ‘Browse…’ to RssToolkit.dll.

 

‘Samples’ directory contains the pages described in the scenarios below.

Scenario 1 -- Consuming RSS feed using RssDataSource control

  • Add DataList control to the page, select ‘New Data Source’ and choose ‘RssDataSource’.
  • Type in the URL of the RSS feed in the RSS Data Source configuration dialog
  • Edit DataList template:
    • Remove all existing fields
    • Add HyperLink
    • Data bind ‘Text’ to ‘title’ and ‘NavigateURL’ to ‘link’

Generating strongly typed classes to consume feeds

This can be accomplished in two ways:

  • Using  Rssdl.exe command line utility and placing the resuling source file into app_code, for example:

rssdl http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml Msnbc.cs

  • By placing .rssdl containing the link to the feed(s) into app_code directly:

<rssdl>

    <rss name="Msnbc" url="http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml/" />

</rssdl>

The samples contain a pre-generated sources file for the feed.

Scenario 2 -- Consuming RSS feed using ObjectDataSource control

  • Add DataList control to the page, select ‘New Data Source’ and choose ‘ObjectDataSource’.
  • Pick the strongly typed Channel as the business object and ‘LoadChannelItems’ as Select Method
  • Edit DataList template:
    1. Remove all existing fields
    2. Add HyperLink
    3. Data bind ‘Text’ to ‘title’ and ‘NavigateURL’ to ‘link’

 

Scenario 3 -- Consuming RSS feed programmatically using strongly typed classes

  • Add a GridView to the page without selecting a data source
  • Load channel using strongly typed class and data bind programmatically:

        MyChannel c = MyChannel.LoadChannel();

        GridView1.DataSource = c.Items;

        GridView1.DataBind();

Scenario 4 -- Consuming RSS feed programmatically using late bound classes

  • Add a GridView to the page without selecting a data source
  • Load channel using late bound channel class and data bind programmatically:

        GenericRssChannel c;

        c = GenericRssChannel.LoadChannel("http://myserver/myrss");

        GridView1.DataSource = c.SelectItems();

        GridView1.DataBind();

Scenario 5 – Publishing RSS feed using strongly typed classes

  • Place channel schema file (.rss) into app_code directory
  • Create HTTP handler (.ashx) derived from the auto-generated strongly typed HTTP handler – override PopulateItems method:

public class MyHandler : MyChannelHttpHandlerBase {

    protected override void PopulateChannel(string channelName,

                                            string userName) {

        Channel.Items.Add(new MyChannelItem(...));

        ...

    }

}

  • On the page publishing RSS feed place RssHyperLink control and configure it:
    • Point NavigateUrl to the .ashx handler
    • Specify ChannelName property to be passed to the handler – useful when a single handler produces multiple channels
    • Set IncludeUserName to true, to create a secure personalized link with the encoded user name.

Note that RSS properties that are URLs can be entered as app-relative links (~/…) – they will be automatically converted to fully qualified URLs when RSS XML is generated.

Scenario 6 – Publishing RSS feed using late bound classes

  • Create HTTP handler (.ashx) derived from GenericRssHttpHandlerBase – override PopulateItems method:

public class MyHandler : GenericRssHttpHandlerBase {

    protected override void PopulateChannel(string channelName,

                                            string userName) {

        Channel["title"] = "...";

        Channel["link"] = "~/...";

        Channel["description"] = "...";

        GenericRssElement item = new GenericRssElement();

        item["title"] = "Scenario1";

        item["description"] = "Consuming RSS feed using RssDataSource";

        item["link"] = "~/scenario1.aspx";

        Channel.Items.Add(item);

        ...

    }

}

  • On the page publishing RSS feed place RssHyperLink control and configure it to make NavigateUrl to point to the .ashx handler

 

---

 
点云最小二乘法拟合曲线 文章目录一、引言 一、引言 阅读详情

相关推荐

Ollama本地大模型部署指南:从核心原理到实战避坑

大语言模型(LLM)作为人工智能领域的核心技术,通过海量数据训练获得强大的语言理解和生成能力。其工作原理基于Transformer架构,通过自注意力机制处理序列数据,在文本生成、代码编写和对话系统等场景展现出巨大价值。随着开源模型的普及,本地部署成为关注焦点,它解决了数据隐私和定制化需求,但面临环境配置和资源管理的挑战。Ollama作为开源工具,通过封装模型格式和统一API,简化了本地部署流程,支持GPU加速和性能调优,让开发者能够快速集成到IDE和自动化脚本中,实现高效的本地AI应用部署。

weixin_30915951的博客 451

基于ASP.NET的Rss开发包:ASP.NET RSS Toolkit

Please check out ASP.NET RSS Toolkit, one of my latest projects. The RSS toolkit includes support for consuming as well as publishing RSS feeds in ASP.NET applications.  Features include:

陈亚平 的技术博客 1738

SAP 深入理解库存

当 某个期间发生货物移动的时候,系统在更新mard数据的之前(这个表是实时更新的),会检查此笔业务过账期间和mard里对应记录的期间是否一致,也就是 看这是不是本期间第一笔移动。其二,我们不能保证这定期的作业的确定性,硬件维护、系统性能都可能使这预定的“时刻”出现偏差,如果某一次没能抓取该时刻的库存,对整个报表来说,是数据的缺失;中,当某一期间(Period)的第一项操作更新了物料数量或价值,则SAP系统会向表MBEWH写入一条记录,以第一项操作之前的余额、价格控制为标准。这对于业务数据量大的。

matinal 當冬夜漸暖 。公众号:matinal 3620

ASP.NET RSS Toolkit 2.0 Released(zt)

Piyush and IDisposable just released version 2.0 of the ASP.NET RSS Toolkit to CodePlex.  New features include feed aggregation, atom support, full element parsing (including attributes), more robust ...

weixin_34185560的博客 89

YOLOv11改进策略【卷积层】| ICCV-2023 LSK大核选择模块 包含二次独家创新

LSK module是。

Limiiiing的博客 1381

MicroPython学习:在STM32上进行移植

本文将介绍如何在STM32上移植MicroPython,并提供相应的源代码。通过以上步骤,你已经成功地将MicroPython移植到STM32上,并可以使用MicroPython语言编写和运行代码。你可以进一步探索MicroPython的功能和API,以利用STM32的各种外设和功能。使用STM32CubeProgrammer或其他适当的烧录工具,将编译生成的MicroPython固件烧录到STM32微控制器中。打开该文件,并根据你的STM32微控制器类型进行必要的配置更改。模块来控制STM32的LED。

JeeVue的博客 1237

ASP.Net RssToolkit Version 2.0

 I have been part of the team working on the latest version ASPNET RssToolkit, originally created by Dmitry Robsman. We enhanced this awesome Toolkit and have just released version 2.0 of the Toolki

大伟先生 1906

SerDes学习笔记:DFE均衡架构示例(USB3.1、PCIe3.0\4.0)

本文探讨了DFE均衡器架构在不同数据接口中的应用特性。研究表明,抽头数量随数据速率提升而增加,1-16抽头架构较为常见。通过PCIeGen3/4实例分析,对比了单抽头、双抽头和15抽头DFE的性能差异,证明多抽头结构能通过精细调节有效提升噪声容限和降低误码率。文章详细阐述了DFE工作原理,包括其通过反馈信号对输入信号的补偿机制,以及不同抽头对消除码间干扰的作用。实验采用8Gbps速率(125ps/UI)进行波形仿真,直观展示了均衡处理前后的信号变化,为理解信道均衡技术提供了重要参考。

一只豌豆象的博客 517

ASP.NETRSSToolkit(RSS工具)

<!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--><script type="text/javascript"

zgqtxwd的专栏 258

YOLOv10改进策略【模型轻量化】| MoblieNetV3:基于搜索技术和新颖架构设计的轻量型网络模型

本文记录的是基于MobileNet V3的YOLOv10目标检测轻量化改进方法研究。的模型结构是通过得来的,其中的基础模块结合了的深度可分离卷积、的线性瓶颈和倒置残差结构以及MnasNet中基于挤压和激励的轻量级注意力模块,使模型在性能、效率和灵活性方面都具有显著的优势。本文在替换骨干网络中配置了原论文中的small和large2种模型,以满足不同的需求。

Limiiiing的博客 514

YOLOv8 交通违规检测各个场景的实际应用

本文介绍了基于YOLOv8的交通违规检测系统在不同场景下的应用实现。系统可检测闯红灯、超速、违停和不系安全带等多种违规行为,针对每种场景提供了具体的技术方案和Python实现代码。其中闯红灯检测结合信号灯状态分析,超速检测通过距离时间计算速度,违停检测采用长时间跟踪策略,安全带检测则需更高精度识别。文章还展示了如何整合各功能构建综合交通监管系统,并总结了不同应用场景的技术要点和优化方向,为智能交通管理提供了实用解决方案。

u010117029的博客 299

July 4th Links: ASP.NET, ASP.NET AJAX, Visual Studio, Silverlight and IIS7

原文地址: http://weblogs.asp.net/scottgu/archive/2007/07/04/july-4th-links-asp-net-asp-net-ajax-visual-studio-silverlight-and-iis7.aspx ASP.NET ASP.NET RSSToolkit 2.0 Released: One of the cool proj...

weixin_34257076的博客 124

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

今日见闻----ASP.NET项目组4月更新计划

  在scottgu的Blogs上发表一篇Upcoming ASP.NET Releases in April,介绍ASP.NET相关工具和组件在4月份的一些更新计划。  1.VS 2005 Web Application Project 在下周即将发布一个完整版本。说实话,上一版本并没有给我太多的帮助,在将原来的Web Site 工程转过去后,就没再使用过它了,各项功能都还不完善,还不适...

weixin_33831196的博客 81

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

AJAX Accordion:可折叠面板的集合

Accordion:可折叠面板的集合 Accordion控件中可以包含若干个面板,让用户通过点击不同面板的标题栏一次只展开并显示其中的一个内容,就像将好多个CollapsiblePanel堆到了一起。 10.2.1 应用场景 通常来讲,将一个无比长的列表直接显示给用户是一种极不礼貌的行为。解决方案有很多,归类显示就是其中之一。例如我们常见的QQ或MSN Messenger(Wind...

dbjtimve93993的博客 248

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

Accordion

Accordion:可折叠面板的集合 Accordion控件中可以包含若干个面板,让用户通过点击不同面板的标题栏一次只展开并显示其中的一个内容,就像将好多个CollapsiblePanel堆到了一起。 10.2.1 应用场景 通常来讲,将一个无比长的列表直接显示给用户是一种极不礼貌的行为。解决方案有很多,归类显示就是其中之一。例如我们常见的QQ或MSN Messenger(Windows ...

weixin_34273481的博客 182

一个简单的RSS阅读器

使用Microsoft提供的RSS工具包为了让用户可以在ASP.NET 2.0中方便地使用RSS技术,Microsoft提供了一个RSS工具包,使用户可以简单地实现RSS的订阅和阅读功能。RssToolKit下载地址: http://blogs.msdn.com/dmitryr/attachment/561200.ashx这个工具包提供了“RssDataSource”和“RssHype

1150

使用ASP.NET AJAX Control Toolkit中的ReorderList控件实现用鼠标拖动改变条目顺序

本文来自我即将出版的《ASP.NET AJAX程序设计 第I卷 服务器端ASP.NET AJAX Extensions与ASP.NET AJAX Control Toolkit》第10章第4节。请各位朋友不吝给出建议和意见。 10.4 ReorderList:用鼠标拖动改变条目顺序 ASP.NET AJAX Control Toolkit中的ReorderList控件将在页面中呈现出一...

weixin_30457551的博客 210

asp.net的Ajax学习进阶

asp.net的Ajax学习进阶作者:清清月儿主页:http://blog.csdn.net/21aspnet/          时间:2007.6.3 1.什么是Ajax?2006年忽如一夜春风来,众多涉及到Web开发的站点都在谈Ajax,那么到底什么是Ajax呢?其实Ajax并不是一种技术。它实际上是几种已经在各自领域大行其道技术的强强结合。Ajax混合了

深度Java 2万+

RSS Toolkit

http://blogs.msdn.com/dmitryr/archive/2006/03/26/561200.aspxhttp://weblogs.asp.net/scottgu/archive/2006/02/22/438738.aspx 转载于:https://www.cnblogs.com/ekeen/archive/2006/06/12/423748.html

weixin_30497527的博客 77
上一篇: 秋天到了么?
下一篇: 怎样实时获取天气预报
pjuner
博客等级 码龄23年 3粉丝 12原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值