Hi!I'm Ostwald.I'm an electronics engineer.I'm working on my website. I have a knowledge of c# and asp.net. I have read the InstantResults asp.net2.0. It was really a great experience. The coding is done in
VB. I'm converting the code to c#. I'm getting the following errors near data reader and parameters. declarations.
The errors are as follows:
1. dr is declared as variable but used as fuction
SqlDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection) ;
cmd = null;
do
{
mEventAttendees.Add((long)(dr("ContactId")));
}while (dr.Read());
2.Error 44 'System.Data.SqlClient.SqlCommand.Parameters' is a 'property' but is used like a 'method'
cmd.Parameters("@NewEventId").Direction = ParameterDirection.ReturnValue;
3.'System.Collections.IList.IsReadOnly' is a 'property' but is used like a 'method'
public DiaryEvent Item
{
get { return (DiaryEvent)List.IsReadOnly(Item(index)); }
}
Kindly sort the errors.
regards
Ostwald!
Surya!