MarkItUp.SingleUserBlog/UI/WebParts/OpmlWebPart.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;
using System.Xml.Xsl;
using System.IO;
using System.Resources;
using Resources;
using System.Text;
using MarkItUp.SingleUserBlog.Common;
using System.Web.Caching;
using System.Net;
namespace MarkItUp.SingleUserBlog.UI.WebParts {
public class OpmlWebPart : WebPart {
public OpmlWebPart() { }
private string _opmlPath;
[Personalizable]
[WebBrowsable]
[WebDescription("A path to an opml xml file.")]
public string OpmlPath {
get { return _opmlPath; }
set { _opmlPath = value; }
}
private string _opmlXsltPath;
[Personalizable]
[WebBrowsable]
[WebDescription("A path to an XSLT to use to display the opml xml file.")]
public string OpmlXsltPath {
get { return _opmlXsltPath; }
set { _opmlXsltPath = value; }
}
string GetTransformedString() {
string cacheKey = this.ClientID + "_TransformedOPML";
string opml = this.GetOPMLString();
string opmlXSLT = this.GetOPMLXsltString();
if (string.IsNullOrEmpty(opml) || string.IsNullOrEmpty(opmlXSLT)) {
return string.Empty;
}
string retVal = HttpRuntime.Cache[cacheKey] as string;
if (string.IsNullOrEmpty(retVal)) {
后面还有 98 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
