Thread: Wrox CMS in C#
View Single Post
  #2 (permalink)  
Old February 22nd, 2007, 04:59 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

Really glad you like the book. Spread the word!! Spread the word....

Anyway, errors like this:
quote:.Web.UI.HtmlControls.HtmlControl.Attributes' is a 'property' but is used like a 'method'
usually indicate a problem with arrays / collections. When you convert code like this:


the converter thinks Items is a method that gets 0 as an argument. Instead, you want to index the array or collection using C# indexers:


I may be able to give you better help / fixes if you post the problematic lines of code; I didn't have the time to look into the download yet.

Also, when you're with the conversion, please let me know. I'll ask Wrox to make your post with the final code a sticky one, so others can find it more easily.

It's great you're converting it to C#!!

Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.