How to use in Visual Studio 2010

Posted on 2011-10-07
Last Modified: 2012-05-12
Using VS10 & ASP.NET 3.5

It doesn't like me to use....
    dim dt as DateTime =     <--- no property with "now"

What's that about ???
Question by:MikeCombe
    LVL 7

    Expert Comment

    "now" should be "Now".

    Author Comment

    I agree....that was my typo.
    However....that is not the issue

    In an ASPX file it works as expected.
    In an ASMX file it does NOT work.
    VS10 acts like it doesn't understand it.
    I have "Imports System in my ASMX file.
    What is missing ?


    Accepted Solution

    problem solved.....right click in VS10, selected a pop-up setting & now it works.
    go figure.

    Author Closing Comment

    as stated

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now