Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 February 27th, 2010, 05:04 AM
Authorized User
 
Join Date: Feb 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default chp 4: Asp.net Server Controls

Hi Imar,

I can't understand the diference you have mentioned b/w Server contorls & HTML Controls as here:
"In contrast to the ASP.NET Server Controls, the HTML controls are client-side controls and end up directly in the final HTML in the browser"
Please tell me the clear diference b/w Server and HTML controls.

Thanks
 
Old February 27th, 2010, 06:20 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,

You may want to take another look at the Try It Out on page 105. t shows you how server controls are defined as a server control in markup in the page, are processed by the server and then end up as HTML in the browser. E.g. in server side markup in a page, you define this:

<asp:TextBox id="txt" runat="serrver" Text="Some text" />

which then ends up as the following HTML in the browser:

<input type="text" id="txt" name="txt" value="Some Text" />

HTML controls are just that" controls defined with plain HTML in the markup. There are not processed at the server, but their HTML is taken from the markup and sent directly to the browser. E.g. when you define an HTML control in markup like this:

<input id="Button1" type="button" value="button" />

it ends up exactly as that in the client HTML and no server side processing takes place.

Does that clarify things?

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 February 28th, 2010, 12:09 AM
Authorized User
 
Join Date: Feb 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Thanks, i got the diference b/w Server and HTML controls, one more question what is the benifits of processing ther Server controls on Server? which one we should use?
Thanks
 
Old February 28th, 2010, 05:04 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,

Looks like you're asking a lot of questions that are explained in detail in the book. Just as the difference between the HTML and Server Controls, this question is answered in Chapter 4 as well. Take a look at page 124 for a discussion of these two types of controls.

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
Asp.Net Server Controls Overlapping Problem vinod_pawar1 General .NET 1 August 15th, 2004 06:20 PM
Asp.Net Server Controls Book missing vkarlo Wrox Book Feedback 2 August 15th, 2003 10:36 AM
ASP.NET server side controls me_shriram VS.NET 2002/2003 3 August 11th, 2003 03:55 AM
ASP.NET Server Controls sstchur C# 0 August 2nd, 2003 07:52 AM





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