Re: newbie: HTML controls vs Web controls

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

R.A.M. wrote:
Hello,
I am learning .NET 2.0. And I have a question: when to use web-controls and when to use HTML controls?
/RAM/

The System.Web.UI.HtmlControls namespace is for HTML controls, in the sense that they are declared on the page using standard HTML tags, for example "input", "select", "textarea", etc...

The System.Web.UI.WebControls namespace is for ASP.NET controls, which are declared on the page with an "asp:" prefix, for example "asp:Checkbox".

The different is that in the first case, they're client-side controls. You use them on the server in order to set attributes, scripts, etc... which are executed on the client. In the second case, however, (and while you can also influence the way they will be rendered on the client), the events you wire them to are executed on the server (involving a postback).

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
.



Relevant Pages

  • Re: DNS dfs issue
    ... that the namespace server, decommissioned the problematic DC/DNS. ... It seems to depend on the dns, but they should be the same. ... every client at Site B is affected. ...
    (microsoft.public.windows.server.dns)
  • Re: DNS dfs issue
    ... Put up a new DC/DNS box in the site and made that the namespace server, ... because the results depend on the dns not the logon server. ... This suggests it must be a client setting that affects the ability to resolve the namespace. ...
    (microsoft.public.windows.server.dns)
  • Re: "Insufficient state to deserialize the object" error
    ... code snippet I sent is called "Inexus.dll" (namespace INexusStuff). ... on the Client side. ... Back on the Server side there is another module with the ... The code containing the Server side delegate, ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: DNS dfs issue
    ... But maybe there is a phantom folder in the namespace. ... It seems to depend on the dns, but they should be the same. ... every client at Site B is affected. ... No matter which dns server I use on clientB1 its %logonserver% is always ...
    (microsoft.public.windows.server.dns)
  • Re: WebService Namespace
    ... Server did not recognize the value of HTTP Header SOAPAction. ... the client which uses it, ... has nothing to do with the match between namespace and hosting URL. ... I have a webservice that I might need to configure/move on multiple ...
    (microsoft.public.dotnet.framework.webservices)