When to use aspx controls vs standard html controls

Last post 05-16-2008 5:12 PM by dwfreeman. 2 replies.

Sort Posts:

  • When to use aspx controls vs standard html controls

    05-14-2008, 7:33 PM
    • Loading...
    • dwfreeman
    • Joined on 05-14-2008, 9:59 PM
    • Posts 256

    Could someone please discuss when to use the new aspx controls as in <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> as opposed to the standard <input type=text> etc. This is especially puzzleing with things like labels, tables, buttons where databinding is not an issue. If a label is static and doesn't ever change, is there still a reason to use the newer version?

     

    Thanks 

  • Re: When to use aspx controls vs standard html controls

    05-14-2008, 8:03 PM
    Answer
    • Loading...
    • FarhanK
    • Joined on 01-14-2008, 5:21 PM
    • Posts 231

    Hi...

    Please read the following.

    The following sections cover HTML and Web server controls. Frequently, the question
    arises: which one should I use? Here is some guidance that can help you choose
    the proper control type.
    Consider using the HTML server controls when any of the following conditions exist:

    ■ You are migrating existing ASP pages to ASP.NET.

    ■ The control needs to have custom client-side JavaScript attached to the control’s
    events.

    ■ The Web page has lots of client-side JavaScript and that is referencing the control.
    In all other cases, you should consider using the more powerful Web server controls.
    MORE INFO HTML and Web server controls

    For more information about the differences between HTML server controls and Web server controls,
    visit http://msdn2.microsoft.com/en-us/zsyt68f1.aspx.

    [Please mark the post as answer that helps you.]

    Regards,
    Farhan Uddin Khan
    Enpointe Technologies
  • Re: When to use aspx controls vs standard html controls

    05-16-2008, 5:12 PM
    • Loading...
    • dwfreeman
    • Joined on 05-14-2008, 9:59 PM
    • Posts 256

    Thanks

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter