Search

You searched for the word(s): userid:402974

Matching Posts

  • Re: Serialization of derived List<T> properties

    Hi, thanks for the reply. That didn't solve my problem unfortunately. Having looked even further I found this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=566175&SiteID=1 [ quote ] You are correct: XmlSerializer does not serialize any members if a collection. Only collection items get serialized. This is by design, [/ quote ] *sigh* -Edoode
    Posted to C# (Forum) by Edoode on 5/29/2008
  • Serialization of derived List<T> properties

    Aloha, Smallish problem: I know how to serialize objects and all, but this has me worried: Asume this class. Person is a nice simple object. [Serializable()] public class PersonList : List<Person> { public PersonList() {} private int id; public int ID { get { return id; } set { id = value ; } } } If I serialize this class to XML I get a nice ListOfPerson in my xml, but the PersonList.ID property is nowhere in the xml. Here's the core of the serialize: XmlSerializer serializer = new XmlSerializer
    Posted to C# (Forum) by Edoode on 5/29/2008
    Filed under: C# 2005 Generics, Generic List, Serialization
  • Adding nGallery images to dotText

    Hi, After reading http://blog.peaboy.net/peaboy/archive/2004/08/05/262.aspx (Modifying LuxInterioir skin to show new NGallery Galleries (Adding RSSFeed to a dotText Blog)) I've written a small article explaing how to display nGallery highlight images in a dotText blog. You can read it at http://blog.swiftalpha.com/articles/184.aspx The code works but is not 100% foolproof. Grt, -Edo
    Posted to .Text (Blogs) (Forum) by Edoode on 8/23/2004
  • Re: Error: String was not recognized as a valid DateTime

    Hi, After doing some looking around in the code I changed one line in Dottext.Framework.Util.WebPathStripper I replaced the private static readonly string[] dateFormats with: {"yyyy\\/MM\\/d","yyyy\\/MM\\/dd","yyyy\\/M\\/dd","yyyy\\/M\\/d","yyyy\\/MM","yyyy\\/M"}; This solved my problem. I only wonder why noone else has it?!? Grt, -Edo
    Posted to .Text (Blogs) (Forum) by Edoode on 8/20/2004
  • Re: Error: String was not recognized as a valid DateTime

    Hi, thanks for the reply. Web.config reads: <HttpHandler pattern = "^(?:/archive/\d{4}/\d{1,2}\.aspx)$" controls = "ArchiveMonth.ascx" /> Stack Trace: [FormatException: String was not recognized as a valid DateTime.] System.DateTime.ParseExact(String s, String[] formats, IFormatProvider provider, DateTimeStyles style) +106 Dottext.Framework.Util.WebPathStripper.GetDateFromRequest(String uri, String archiveText) +164 Dottext.Web.UI.Controls.ArchiveMonth.OnLoad(EventArgs e
    Posted to .Text (Blogs) (Forum) by Edoode on 8/20/2004
  • Error: String was not recognized as a valid DateTime

    Hi, I'm running an unmodified dotText latest version on a Windows2003 server. Whenever I click on a 'monthly archive' link I receive the error 'String was not recognized as a valid DateTime.' An example URL is http://blog.swiftalpha.com/archive/2004/07.aspx The server is configured to use the English regional settings. The web.config reads '<globalization culture="en-US" />' as expected. I've looked around for a solution but didn't find one. Anyone? -Edo
    Posted to .Text (Blogs) (Forum) by Edoode on 8/20/2004
  • Re: ngallery memory hog.

    Re: HenkM comments fix. Forcing the myPicture.Comments = null in Data\DLSqlServer.cs leaves a slight bug in the admin side. In admin\albumdetails.aspx.cs, around line 210: replace this method: protected int GetCommentCount(object dataItem) { nGallery.Lib.Picture currentPicture = (nGallery.Lib.Picture) dataItem; if (currentPicture.Comments != null) return currentPicture.Comments.Count; else return 0; } Very nice fix though :) -Edo
    Posted to nGallery (Forum) by Edoode on 8/15/2004
  • Re: ngallery memory hog.

    In Data\DLSqlServer.cs, replace myPicture.Comments = null; //uncomment next line if you use picture comments!!! //myPicture.Comments = this.GetPictureComments(albumID, pictureID); //make a configuration or comment count based decision. with : myPicture.Comments = null; if (nGallery.Lib.Configuration.Instance().EnableComments) myPicture.Comments = this.GetPictureComments(albumID, pictureID); to retreive comments when enabled. -Edo
    Posted to nGallery (Forum) by Edoode on 8/15/2004
  • Re: Performance on WIndows 2003

    Hi there, Thanks for you r suggestion! I'd think posting the changes in this forum would be a good idea. And perhaps the nGallery developers can incorporate them in either 1.6.2 or a hotfix? -Edo
    Posted to nGallery (Forum) by Edoode on 7/12/2004
  • Performance on WIndows 2003

    Hi there, Have been using nGallery 1.6.1 since it was beta now and am quite happy with it, but I still experience slow page loads. I did a quick search on this forum and noticed that most 'complainers' mentioned windows 2003. My setup: A P-III 450/512MB windows 2003 server running SQL server 2000, doing nothing much else besides runnning this site. Using nGallery 1.6.1 upgraded from 1.5. Looking at the taskmanager while serving requests, I see a huge spike in processor time for w3wp.exe every page
    Posted to nGallery (Forum) by Edoode on 7/11/2004
Page 1 of 2 (12 items) 1 2 Next >