473,396 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP.Net Book without builtin control use?


Hello,

I've been using the O'Reilly book _Programming ASP.Net_ to learn
ASP.Net, but it frustrates me because all of the examples seem to use
the built in form controls. I write good, standards compliant HTML, I
understand forms, I write Javascript, and in short, I don't want to use
the canned form things necessarily.

Can anyone suggest a reference or tutorial in a book or on the web that
just gets to the meat of the application server? Things like: what is
all the ASP.Net syntax (I know C#, I mean the things you will put in
the web page itself), how do you do simple tasks like handling a form
post, etc?

Thanks,
Matt

Nov 19 '05 #1
6 1118
mj****@yahoo.com wrote:

Hello,

I've been using the O'Reilly book _Programming ASP.Net_ to learn
ASP.Net, but it frustrates me because all of the examples seem to use
the built in form controls. I write good, standards compliant HTML, I
understand forms, I write Javascript, and in short, I don't want to
use the canned form things necessarily.


Actually, a ready-to-use library of powerful web controls was supposed
to be one of the major benefits of ASP.NET... why reinvent the wheel by
reimplementing core framework functionality? Yes, ASP.NET's rendered
HTML isn't really that good, but that should be remedied with ASP.NET
2.0.

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #2
>> I've been using the O'Reilly book _Programming ASP.Net_ to learn
ASP.Net, but it frustrates me because all of the examples seem to use
the built in form controls. I write good, standards compliant HTML, I
understand forms, I write Javascript, and in short, I don't want to
use the canned form things necessarily.


Actually, a ready-to-use library of powerful web controls was supposed
to be one of the major benefits of ASP.NET... why reinvent the wheel by
reimplementing core framework functionality? Yes, ASP.NET's rendered
HTML isn't really that good, but that should be remedied with ASP.NET
2.0.


Except when the added value is nil. I *do* like DataGrid, Repeater and
other really powerfull controls, but I just hate Label, ListBox, Literal : I
like to know what I'm doing, and I do not code for "IE only".

Luckilly we do not need to reimplement HTML controls, we can use the
System.Web.UI.HtmlControls controls for pure HTML work, and DOMValidators
for non IE6 validation.
Nov 19 '05 #3
It bothers me that client side form elements are considered "core
framework functionality". It may indeed be that asp:button, etc are
the best way to do things, but I haven't found any serious discussion
of the reasons for or against. I know from my experience with
ColdFusion that the built in controls often are not very good.

As to why reinvent the wheel...it is because it would be easier for me
not to have to use them. Even from simple examples, I noticed that
ASP.Net uses the <font> tag in Firefox instead of <style>.

Nov 19 '05 #4
Thank you, I will look at those controls.

Nov 19 '05 #5
Michel de Becdelièvre wrote:
I've been using the O'Reilly book _Programming ASP.Net_ to learn
ASP.Net, but it frustrates me because all of the examples seem to

use >> the built in form controls. I write good, standards compliant
HTML, I >> understand forms, I write Javascript, and in short, I
don't want to >> use the canned form things necessarily.

Actually, a ready-to-use library of powerful web controls was
supposed to be one of the major benefits of ASP.NET... why reinvent
the wheel by reimplementing core framework functionality? Yes,
ASP.NET's rendered HTML isn't really that good, but that should be
remedied with ASP.NET 2.0.


Except when the added value is nil. I do like DataGrid, Repeater
and other really powerfull controls, but I just hate Label, ListBox,
Literal : I like to know what I'm doing, and I do not code for "IE
only".


What you're missing is the fact the these controls are meant to
abstract from the actual HTML they produce. This enforces uniform HTML
rendering at the component level, which is a good thing for large scale
development.

The downside of this is that if the rendererd HTML is not satisfactory
for whatever reason, and you cannot easily override the rendering
logic, you're pretty much screwed.

At the end of the day, you need to decide between a lightweight
approach (with a lot of explicit HTML) and a heavyweight approach (with
lots of powerful controls). The same is true for similar technologies
like JSP Tag libraries.
Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #6

"Joerg Jooss" <ne********@joergjooss.de> a écrit dans le message de news:
xn****************@msnews.microsoft.com...
Michel de Becdelièvre wrote:

Except when the added value is nil. I do like DataGrid, Repeater
and other really powerfull controls, but I just hate Label, ListBox,
Literal : I like to know what I'm doing, and I do not code for "IE
only".


What you're missing is the fact the these controls are meant to
abstract from the actual HTML they produce. This enforces uniform HTML
rendering at the component level, which is a good thing for large scale
development.


Indeed, I want to do HTML, unless there is a big added value to use
another rendering model.

This is the case for a number of controls, such as DataGrid, Reapeater,
Validators (pity they are IE only - we are lucky that DOMValidators exists).

ascx files are also a big plus for behaviour standardisation, as are
probably master pages and partial classes (I only do 1.1 so far, I never
tested them).

In my experience, what you are missing with the "high level" controls is
good quality standard rendering and fine grained control on position in
anything but the simplest relative positioning scenarios.

You are also missing the use of external CSS sheets, since you do not
really control the rendering (much to many things end up "inline") , and
this can be a pain to assure uniform look of a site. These CSS sheets can
also cut on the bandwidth requirements of a site, since they are often
cached.

So I avoid System.Web.UI.WebControls in favour of
System.Web.UI.HtmlControls unless there is a big payback, which is the
mostly case for big complex objects, but to each his own : I like .Net
because it supports different styles well enough, I do not have this "we
know better than you how you SHOULD program" feeling that I get with Java.

Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Eduardo Patto Kanegae | last post by:
Hello, I have been programming with Visual Basic and PHP in the last 5 years and some folks had recommended Python a free language.... I had looked for a Python book to start up but found many...
1
by: Stephen Ferg | last post by:
Python has a builtin class for staticmethod. Seems to me that Python should also have a builtin class for abstractmethod. Something like this... ####################################### #...
7
by: tada991 | last post by:
Hello Everyone, I just purchased Visual Studio .Net Architect 2003 and want to know what's a good book for begginers to start with. I know nothing about programming whatsoever, but I do have a...
13
by: Gabriel Reid | last post by:
Greetings, I'm looking for any books that the members of this group may have to recommend for C#. I have experience with a number of programming languages (probably most relevant would have to...
4
by: Jozef | last post by:
Hello, I'm doing the lessons out of a Sams ASP.net book and have copied the following verbatim, out of the book (without the beginning and ending quotes); "'<%@ Page Language="vb"%>...
3
by: Sarav | last post by:
Hi All, I need to upload an XML file via an client side ActiveX control. I searched the web but everywhere got the samples of using file control alone. How can I upload a file into my web server...
6
by: Anders K. Olsen | last post by:
Hello group I'm trying to list the users and groups who has read access to a file. I use .NET 2.0 and FileInfo.GetAccessControl().GetAccessRules(...) and then loop through the...
0
by: nejucomo | last post by:
Hi folks, Quick Synopsis: A test script demonstrates a memory leak when I use pythonic extensions of my builtin types, but if I use the builtin types themselves there is no memory leak. ...
263
by: Malcolm McLean | last post by:
The webpages for my new book are now up and running. The book, Basic Algorithms, describes many of the fundamental algorithms used in practical programming, with a bias towards graphics. It...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.