Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:402974
More Search Options
RSS Available
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 >
Channel 9:
Nick Baker: Xbox Architecture
TechNet Edge:
Thrive Live! Behavioral Interviewing: A behavioral answer is always the correct answer
ASP.NET:
PDC and Tech-Ed Europe Slides and Code
WindowsClient:
Anybody build a XAML parser in C or C++ yet?
WindowsClient:
Silverlight use, power and deployment keeps growing; so does WPF
ASP.NET:
T4CSS: A T4 Template for .Less CSS With Compression
WindowsClient:
JSON-P: An Elegant Hack
Channel 9:
Photosynth Update and New UI
Channel 9:
First Look: Streetside in Bing Maps
Channel 9:
Coding4Fun at PDC 2009
WindowsClient:
10 Must-See PDC 09 Sessions
Channel 10:
Photosynth Updated with New Release and New UI
Channel 10:
WindowsBlinds 7 Now Works with Windows 7
Channel 10:
Zune HD Launches New Colors
ASP.NET:
PDC09: ASP.NET MVC 2: Ninjas Still on Fire Black Belt Tips
ASP.NET:
Hanselminutes Podcast 188: ASP.NET MVC 2 Beta with Phil Haack
ASP.NET:
Hanselminutes Podcast 186: .NET Debugging 101 with Tess Ferrandez
TechNet Edge:
WinRE and free stuff with Sean Kearney
WindowsClient:
XslCompiledTransform and large template elements
WindowsClient:
The Future of Client App Dev : WPF and Silverlight Convergence
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online