Exemple #1
0
        /// <summary>
        /// Creates from request.
        /// </summary>
        /// <returns></returns>
        public RssGeneratorParameters CreateFromRequest()
        {
            RssGeneratorParameters retVal = new RssGeneratorParameters();

            retVal.UserId = new Guid(HttpContext.Current.Request.QueryString["u"]);
            retVal.ClassName = HttpContext.Current.Request.QueryString["cn"];

            // TODO: Check retVal.UserId and logon user by usre id

            string strObjectId = HttpContext.Current.Request.QueryString["id"];
            if (!string.IsNullOrEmpty(strObjectId))
                retVal.ObjectId = int.Parse(strObjectId);

            retVal.CurrentView = HttpContext.Current.Request.QueryString["cv"];

            return retVal;
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RssGenerator"/> class.
 /// </summary>
 /// <param name="page">The page.</param>
 /// <param name="genParams">The gen params.</param>
 public RssGenerator(Page page, RssGeneratorParameters genParams)
 {
     this.Page = page;
     this.Parameters = genParams;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RssGenerator"/> class.
 /// </summary>
 /// <param name="page">The page.</param>
 /// <param name="genParams">The gen params.</param>
 public RssGenerator(Page page, RssGeneratorParameters genParams)
 {
     this.Page       = page;
     this.Parameters = genParams;
 }