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 May 15th, 2011, 02:04 PM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Just curious.

I was wondering what is with all of this configuration stuff. In the past I only really used grids to display data. That last time I used Visual Studio it was version 2.0. The way I did it in the past was to create web forms that had blank text boxes that the end-user could fill out and then push a button that would call the datastring connection to the database that was located in the web.config file then use data objects and it then would instantiate class objects that would carry the information to a second tier that had all the class methodologies including calls to stored procedures to pass data to the third tier for the database that would then get the information and insert the data into the database. If the end user needed to delete something then they could then see the data item in the grid, click it which would then do the same aforementiond process. Updating would be done pretty much the same way. There was none of this entity framework LinQ stuff like you have today. It seems to me you are adding more layers of complication and this way is not as fast or as robust as doing it the other way I mentioned. IMO all of that seems like a lot of bother when there was much easier (for me at least) straight forward more VB-C# codecentric method than having to mess so much with cubersome backend XML stuff by deleting this itemTemplate and modifying that ItemTemplate etc, etc. My question to you is whatever happened to that approach?
I just wondering why it is not being used anymore with the new version of ASP.NET 4.0?
 
Old May 15th, 2011, 02:20 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's still being done. It just depends on your preference and experience.

http://imar.spaanjaars.com/416/build...pnet-20-part-1
http://imar.spaanjaars.com/476/n-lay...l-introduction

Personally, I prefer Entity Framework over a custom data solution these days. The overhead is not that bad, and it saves you from *a lot* of coding.

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 May 15th, 2011, 02:39 PM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Steep Learning curve

The problem for me is that I am not used to doing it your way, I am only familiar with my way of doing things. As such learning your way has been a very steep learning curve for me to say the least. I guess that would account in some of my frustration levels that I have experienced recently in chapters 13, 14, and 15. I love writing VB-C#-codes. I enjoy doing things that way.
 
Old May 15th, 2011, 02:43 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Then checkout the two article series I linked to; you'll find lots and lots of coding in there.

They say of ASP.NET that it makes the hard things easy, and the easy things hard. Maybe your style of coding asks for a different development platform.

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
Curious about what Marco's been up to? Lee Dumond BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 June 28th, 2009 12:19 PM
Curious about file formats jumbojs C# 2008 aka C# 3.0 3 December 18th, 2008 09:55 AM
Curious image map issue... can you help? BananaJim Javascript 2 November 29th, 2006 03:10 PM
curious problem with W3C validator spineynorman HTML Code Clinic 1 April 3rd, 2006 08:20 PM
Curious Colonel Angus VB.NET 5 April 13th, 2005 10:11 PM





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