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 August 20th, 2012, 07:08 AM
Registered User
 
Join Date: Aug 2012
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
Default what i hate about asp.net

hello,

i was a php developer, i learn asp.net now from 1 month, something i hate in this technology (is everything that make the work for you), exemple : in php i used to make every thing by my self, why i like the second one ?, first: i understand how it works, i can customize like i want, example :
-member space in php : i do all the work by my self i program everything i customize everything.
-member space in asp.net : i drag login,loginStatus,create user wizard, so the framework does everything, i don't see the code behind, i can't really understand how it works in details, it creates tables that i don't want (not compatible with my database design) and the same we can say with auto genertated menu,treeviewand so on.

* sorry for my bad English, i want comments about what i have said (i loved your ebook)
 
Old August 20th, 2012, 09:56 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,

The good news is: you don't *have* to use these controls. If you want, you can do everything programmatically (as that's what the controls do under the hood as well) using direct database access, handling authentication etc. The downside of course is that it's more work, requires more testing and may lead to less secure code.

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!
The Following User Says Thank You to Imar For This Useful Post:
Younes ch (August 20th, 2012)
 
Old August 20th, 2012, 11:15 AM
Registered User
 
Join Date: Aug 2012
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
Default

if i choose using asp.net controls do i have ability to customize everything ?; like changing tables structure, required fields when creating new account ..etc
 
Old August 20th, 2012, 12:20 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile

Quote:
i was a php developer, i learn asp.net now from 1 month, something i hate in this technology (is everything that make the work for you), exemple : in php i used to make every thing by my self, why i like the second one ?, first: i understand how it works, i can customize like i want, example :
-member space in php : i do all the work by my self i program everything i customize everything.
If this is the case then you must have a strong understanding of database and related queries, then why don;t you create your own form in asp.net as Imar has told.


Quote:
if i choose using asp.net controls do i have ability to customize everything ?; like changing tables structure, required fields when creating new account ..etc
Of course, you have compete control over those controls, you can customize those by choosing 'Convert to Template' option from smart task's panel

Hope it helps
The Following User Says Thank You to sophia For This Useful Post:
Younes ch (August 20th, 2012)
 
Old August 20th, 2012, 12:55 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
if i choose using asp.net controls do i have ability to customize everything ?; like changing tables structure, required fields when creating new account ..etc
You have a lot of control, but it's not unlimited. By default, you can't change the underlying table structure. However, by creating your own provider (see here and here for more details on how to get started) you can do whatever you need to do to authenticate a user.

In addition, you can customize the layout templates to get more control over the rendering. You can't add felds at will and append them to the users table, but you can use the Profile feature to customize the user details (see here for more info).

If you need full control, you need to do it by hand, but that seems exactly what you want to do. You could still use controls such as Login, and then handle events such as OnLogginIn and talk to your own security layer.

Alternatively, look into ASP.NET MVC where you have a lot more control (but also more responsibilities).

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!

Last edited by Imar; August 20th, 2012 at 12:57 PM..
 
Old August 20th, 2012, 01:13 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile

fabulous, thanks for links





Similar Threads
Thread Thread Starter Forum Replies Last Post
Bill I know you hate ajax, so can this be done with javascript...??? ramone_johnny Javascript 1 June 1st, 2009 04:45 PM
GUI I hate the default Apocolypse2005 Visual Basic 2005 Basics 2 April 9th, 2008 07:46 PM
Please help! i hate...double and single quotes... keita Classic ASP Basics 3 March 28th, 2007 11:12 AM
Anybody else learning to HATE pear::DB? biot023 BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 2 March 15th, 2005 04:58 AM
Don't Ya Just Hate This? Ben Horne Javascript 3 October 18th, 2004 09:46 PM





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