drag a table on to Global.asax

Last post 10-28-2008 4:22 AM by Mr^B. 1 replies.

Sort Posts:

  • drag a table on to Global.asax

    10-28-2008, 1:44 AM

    hello, i'm studying ASP.NET, in the ebook, they give me the instruction:

    "In the Server Explorer window, expand the items under the data connection you created by clicking on the plus signs to the left of the Contacts.dbo data connection and then do the same to the Tables sub item. Drag the Calls, ContactTypes, and Contacts tables from the Solution Explorer to the Global.asax page. Visual Studio adds a database connection component and data adapter components for each of the tables."

    I don't know how to drag a Table on to Global.asax, when I do it, nothing happens. I can't switch to Design view.

    please help me!! 

  • Re: drag a table on to Global.asax

    10-28-2008, 4:22 AM
    Answer
    • Star
      12,312 point Star
    • Mr^B
    • Member since 02-12-2006, 6:38 AM
    • Posts 2,181

    Hi,

    That's a mistake in the book - a couple of mistakes in fact.

    1. It says drag from the Solution Explorer, when it means drag from the Server explorer.

    2. It won't work with a global.asax page, it doesn't have a design view.

    3. It will work with a standard .aspx page, but the drag/drop functionality (in VS 2005 anyway) is to create a SqlDataSource and a GridView, not a database connection component and a data adapter.

    What version of ASP.Net is this book for? I can't remember what VS 2003 did.

    MCSD.Net
Page 1 of 1 (2 items)