Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 March 17th, 2011, 04:47 PM
Authorized User
 
Join Date: Feb 2011
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Entity Framework with ACCESS?

The application I'm developing uses ACCESS 2007, I "think" I need the data tools that EF provides to complete this application. Can I use an ACCESS database?

All I really need is to be able to gain access to array info in the code behind.

Thanks in advance!
 
Old March 18th, 2011, 04:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

There's no provider for Microsoft Access for the Entity Framework. That is, it's not listed here: http://msdn.microsoft.com/en-us/data/dd363565.aspx and I've never seen it. That means you can't use Microsoft Access to build a model in Visual Studio.

Quote:
All I really need is to be able to gain access to array info in the code behind.
I don't understand what you're saying here.

You could use raw ADO.NET to access the database, or look into typed datasets.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 18th, 2011, 02:28 PM
Authorized User
 
Join Date: Feb 2011
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Regarding what I'm trying to do... this will definitely show my ignorance

I have a display form that shows one complete record which the user has selected from a previous list. The display form uses some pull-downs which need to be set to the value of whatever the selected record is.

I could pass that pull-down value in the URL like I do the ID but it seems to me that all I really need to pass is the ID and the code behind should be able to figure out all the data for that record. I want to set the value of the pull-downs in the code behind.

I'm certain this is a very basic thing.. I know that ID represents all the data connected to that record I just don't know how to get access to it in the code behind.... that's why I was looking into entities.
 
Old March 18th, 2011, 04:07 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I am not sure I understand your requirements completely, but I think you can accomplish this with the SqlDataSource and some SelectParameters that get data from the Query String. Check out Chapter 13 for more details.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problems with Entity Framework Rushino ASP.NET 4 General Discussion 7 June 12th, 2013 05:17 PM
Entity Framework And MVC geomar BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 5 January 24th, 2011 04:58 PM
Entity Framework vs datasets? hoss BOOK: Beginning ASP.NET 4 : in C# and VB 1 September 30th, 2010 02:42 AM
The BeerHouse and Entity Framework docluv BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 October 3rd, 2008 01:32 PM





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