difference between html and webcontrol ?

Discussion in 'ASP .Net' started by gabriel, Aug 3, 2005.

  1. gabriel

    gabriel Guest

    greetings,

    I understand the difference when the webcontrol generates its html with
    feeding its Text property but not the following :

    <input name="login" type="text" size="8" id="login" runat="server">
    <asp:textbox id="txtUserName" runat="server" width="160px">


    both run on the server, both have a protected field.

    Is it 2 ways of doing the same thing ???

    many thx !
     
    gabriel, Aug 3, 2005
    #1
    1. Advertising

  2. gabriel

    Karl Seguin Guest

    Scott has a nice write up:
    http://www.odetocode.com/Articles/348.aspx

    Sometimes you don't have a choice to use one (htmlfileinput) or the other
    (datalist)...I like to think that HtmlControls are mostly there to help
    people get their ASP/HTML pages quickly converted to ASP.Net (slap on a
    runat="server" and an id and voila...)

    Karl

    --
    MY ASP.Net tutorials
    http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
    http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
    come!)


    "gabriel" <> wrote in message
    news:42f09368$0$5048$...
    > greetings,
    >
    > I understand the difference when the webcontrol generates its html with
    > feeding its Text property but not the following :
    >
    > <input name="login" type="text" size="8" id="login" runat="server">
    > <asp:textbox id="txtUserName" runat="server" width="160px">
    >
    >
    > both run on the server, both have a protected field.
    >
    > Is it 2 ways of doing the same thing ???
    >
    > many thx !
     
    Karl Seguin, Aug 3, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jakk
    Replies:
    4
    Views:
    12,393
  2. Bob
    Replies:
    3
    Views:
    4,863
  3. Santa
    Replies:
    1
    Views:
    1,122
    Mark A. Odell
    Jul 17, 2003
  4. Kasabaarde Sumta

    WebControl inside of WebControl and attaching events

    Kasabaarde Sumta, Dec 13, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    203
    Kasabaarde Sumta
    Dec 13, 2004
  5. PerlFAQ Server
    Replies:
    0
    Views:
    375
    PerlFAQ Server
    Jan 6, 2011
Loading...

Share This Page