[mono-vb] If Else, When in VB ASP.NET (cont)

Jambunathan Jambunathan kjambunathan@novell.com
Wed, 13 Oct 2004 00:48:29 -0600


Tue

> Dim currentDate As Date = Microsoft.VisualBasic.Format(DateTime.Now,
> "MM-d-yyyy")

Rob Tillie fixed this issue on Aug 13. ( "Thanks Rob!") which triggers
the 
following question in my mind: "Why are you using such a old code ?". 
For pieces like mbas, that are under active development that is as 
definitely as old as a fossil.

> Leads to this error:
> forum.aspx.vb(74,14) error BC1501: No overload for method `Tables'
takes `1'
> arguments

Does Tables use Optional Parameters. If yes, then use new mbas and you
will 
be all set to compile the code.

If you have been tracking other threads on this list, you would have
realized 
that mbas is embarrasingly slow and our ASP server times out before
mbas
gets ready with executable.

If you have a high-end machine, there is good chance that you would get

to see your asp page. Just wanted to set the expectation right upfront
...

Thanks once again.

Regards,
Jambunatahn K.

>>> "Tue Doan Nguyen" <minhtue@saigonnet.vn> 10/13/04 11:20 AM >>>
This code snippet:

Dim currentDate As Date = Microsoft.VisualBasic.Format(DateTime.Now,
"MM-d-yyyy")

Leads to this error:
forum.aspx.vb(51,0) error BC0029: Cannot convert implicitly from
'string' to
'date'

---------------------------------------------------------
---------------------------------------------------------
This Code snippet
If myDS.Tables(0).Rows.Count < dotForumDisplay.PageSize Then
dotForumDisplay.PagerStyle.Visible = False

End Sub

Leads to this error:
forum.aspx.vb(74,14) error BC1501: No overload for method `Tables'
takes `1'
arguments