Framework 3.5 conflict w/ vbscript timer function RRS feed

  • Question

  • User-1777897341 posted

    3.5 has a new timer class which just happens to share the same name as the timer function in VB.

     On my page I use the timer function to gather how long it takes to complete a search for the database.  My old 2.0 code won't work in 3.5 anymore.

    Dim ASP_Timer As Double = Timer

     Is there a way to force .Net to run Timer as a VB function?

    Wednesday, May 7, 2008 4:37 PM


  • User-1777897341 posted

    I figured out the solution.

     Just use DateAndTime.Timer() instead of just Timer.  This will avoid the complict.

    Gota love namespace/class polution.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 7, 2008 5:45 PM