Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 7th, 2008, 12:26 PM
Authorized User
Join Date: Jun 2008
Location: , , .
Posts: 75
Thanks: 15
Thanked 0 Times in 0 Posts
Default Where do I place the code?

Hi Everyone,

All I want to do is open a access database by constructing a connection string. Then I will need a command object. I also want to use the DataAdapter to fill an object Dataset that will in turn populate a gridview control. My question is in an asp.net application where I will be using vb.net where do I put this code in the aspx file or the aspx.vb file? Also are the ADO classes or namespaces that I will need automatically imported in to my application or do I need to manually code this? I have placed code from numerous examples into the aspx.vb file and it never works. Any help with this would be greatly appreciated. And long winded answer's are welcomed because I'm thinking there is a lot I need to know before I really understand what is going on in ASP.Net.

Old August 7th, 2008, 01:06 PM
Friend of Wrox
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post

There are many, many tutorials on the Internet regarding data access in ASP.NET, run a Google.

In short, you need a firm understand of how the ASP.NET runtime actually handles ASPX and Code behind files, once you get that, you will have answered part of your question.

As for the ADO.NET classes, the tutorials will tell you what namespaces to import etc.

What code have you tried? Why did it not work? In my opinion though, I would suggest not "running before you can walk". Get an understanding of HOW ASP.NET works, then make it work how YOU want it to :)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Place Holder Manoj Bisht ASP.NET 1.x and 2.0 Application Design 3 October 24th, 2007 08:52 AM
code for in-place Tablet PC Input Panel icon pbhupal Windows Presentation Foundation 0 May 20th, 2007 01:31 PM
Write .NET code in .ZIP File in place of .aspx savan_thakkar ASP.NET 1.0 and 1.1 Professional 3 November 2nd, 2006 08:28 AM
In-place precompilation AGS BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 December 3rd, 2005 07:45 PM
Logging in from another place Hadware General .NET 0 December 14th, 2004 03:39 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.