Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between HTML control and Web Server Control?

Answer Posted / harshad lakkad (bapunagar part

--Web server Control
Web server controls are just like HTML controls...
only different. Let me clarify that.
Web controls are easily identified by the fact that they
have a
runat="server" attribute. They are also handled at the
server by
the ASP.NET runtime when a page containing them is
requested.
They can expose and raise server events which you can use
to
interact with them. They are identified by giving them an
id
attribute which you can then use to reference the control
in
your code. In all these ways, web controls are just like
HTML
controls.

--HTML Controls

The HTML controls might feel slightly quirky if you are
used to forms based development with Microsoft tools. For
instance, HTML controls have no direct properties
available
to set the colors or font used by the control when it
renders.
Another example is the Value property exposed by the
HtmlInputText
field. We generally expect a text box control to have a
Text property
for us to get or set the string to display.

In this sense, HTML controls remain true to their roots and
are
not far removed from writing just HTML. If we want to set
colors
or font information – we can use the Attributes property.
The Attributes property represents all the name / value
pairs in
the HTML element for the control. For example, a control
might have
an attribute “class” which will assign the cascading style
sheet
class. In the example above, we are assigning some inline
style
information to the style attribute of the control. On the
client
this attribute will render inline with the element.

Is This Answer Correct ?    15 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the best practices to follow to secure connection strings in an ASP.NET web application?

1008


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

1993


In which event of page cycle is the viewstate available?

962


Explain the components of web form in asp.net

964


Where session variables are stored?

925


How to change Master page in ASP.Net using code?

1000


What are custom user controls in asp.net?

965


What is difference between session and viewstate?

844


How to bind all the binding controls in a page at once in ASP.NET?

926


What is difference between ispostback and autopostback in asp net?

955


What is difference between asp state management and asp.net state management?

1022


What is the difference between system.stringbuilder and system.string

710


Differentiate between namespace and assembly.

906


What is the difference between web config and machine config files?

958


ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?

1885