Hi Terry,
I see now. The
id, in this example, isn't necessary. It's mainly used for client side script to refer to an element, as in document.getElementId('txtNumber1'). To submit the value to the server to do the calculation, the
name is used instead.
Out of habit, I almost always type both a name and an id, so there's a fair chance I added the id to the code without adding it in the example in the chapter. Don't worry about it too much.
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out
this post.