M
Miguel Dias Moura
Hello,
i am having some problems in a code which populates an ASP.net Calendar
control with events taken from an Access Database. I have this working in C#
but i am getting some errors in VB.
I need to have this done until tomorrow because i will have a flight then.
Can you help me?
You can download the .zip file in: www.27lamps.com/tzone/calendar.zip
Thank You Very Much,
Miguel
The errors i am getting when i run the events.aspx page are:
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
....events.aspx(27) : error BC32017: Comma, ')', or a valid expression
continuation expected.
strEvents.Append("<span style=\"font-size:80%\">")
~~~~
....events.aspx(27) : error BC30035: Syntax error.
strEvents.Append("<span style=\"font-size:80%\">")
~~~
....events.aspx(31) : error BC30689: Statement cannot appear outside of a
method body.
For Each Row As DataRow In ds.Tables.Item("events").Rows
~~~
....events.aspx(32) : error BC30451: Name 'row' is not declared.
Dim eventdate As DateTime = row.Item("eventdate")
~~~
....events.aspx(33) : error BC30689: Statement cannot appear outside of a
method body.
If eventdate.Equals(E.Day.Date) Then
~~
....events.aspx(34) : error BC30188: Declaration expected.
strEvents.Append("<br />" & row.Item("eventdate"))
~~~~~~~~~
....events.aspx(35) : error BC30087: 'End If' must be preceded by a matching
'If'.
End If
~~~~~~
....events.aspx(37) : error BC30188: Declaration expected.
strEvents.Append("</span>")
~~~~~~~~~
....events.aspx(39) : error BC30188: Declaration expected.
E.Cell.Controls.Add(New LiteralControl(strEvents.ToString()))
~
....events.aspx(40) : error BC30035: Syntax error.
Next
i am having some problems in a code which populates an ASP.net Calendar
control with events taken from an Access Database. I have this working in C#
but i am getting some errors in VB.
I need to have this done until tomorrow because i will have a flight then.
Can you help me?
You can download the .zip file in: www.27lamps.com/tzone/calendar.zip
Thank You Very Much,
Miguel
The errors i am getting when i run the events.aspx page are:
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
....events.aspx(27) : error BC32017: Comma, ')', or a valid expression
continuation expected.
strEvents.Append("<span style=\"font-size:80%\">")
~~~~
....events.aspx(27) : error BC30035: Syntax error.
strEvents.Append("<span style=\"font-size:80%\">")
~~~
....events.aspx(31) : error BC30689: Statement cannot appear outside of a
method body.
For Each Row As DataRow In ds.Tables.Item("events").Rows
~~~
....events.aspx(32) : error BC30451: Name 'row' is not declared.
Dim eventdate As DateTime = row.Item("eventdate")
~~~
....events.aspx(33) : error BC30689: Statement cannot appear outside of a
method body.
If eventdate.Equals(E.Day.Date) Then
~~
....events.aspx(34) : error BC30188: Declaration expected.
strEvents.Append("<br />" & row.Item("eventdate"))
~~~~~~~~~
....events.aspx(35) : error BC30087: 'End If' must be preceded by a matching
'If'.
End If
~~~~~~
....events.aspx(37) : error BC30188: Declaration expected.
strEvents.Append("</span>")
~~~~~~~~~
....events.aspx(39) : error BC30188: Declaration expected.
E.Cell.Controls.Add(New LiteralControl(strEvents.ToString()))
~
....events.aspx(40) : error BC30035: Syntax error.
Next