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: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

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

Anyway, errors like this:
Quote:
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:

SomeCollection.Items(0)

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:

SomeCollection.Items[0]

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
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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.