Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6476485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:49:53+00:00 2026-05-25T06:49:53+00:00

I’ve been a PHP developer for 10 years, trying to broaden my horizon I

  • 0

I’ve been a PHP developer for 10 years, trying to broaden my horizon I am doing a project in ASP.NET. What is the advantage to using an <asp:TextBox> over using a standard <input type=’text’>?

It seems advantageous to use a regular <input type=”text”> over <asp:TextBox>. First, when the page is rendered, the <asp:TextBox> becomes a standard <input type=text>. When I use a standard <input type=”text”> I can easily retrieve their value with in serverside code, via Request.Form[“Name”]. Next when I dynamiclly add inputs (via javascript) I can’t use TextBox’s I need to use <inputs type=”text”>. Finally wouldn’t it be faster to render the normal input? If I code with <asp:TextBox>, that has to be rendered where if I use <input type=”text”> it simply needs to be displayed.

In otherwords why bother with all the asp controls when standard inputs work just as well and if not better…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:49:54+00:00Added an answer on May 25, 2026 at 6:49 am

    What is the advantage to using an over using a standard <input type=’text’>?

    • You can reference the textbox a little easier in the code-behind page
      • A note that you can acess any HTML element in the code-behind by using runat="server" inside the control
    • You have access to more properties on the textbox than the input html element
    • You can use textboxes with other ASP.NET controls like validators
    • You can perform data-binding easier with them than inputs
    • You can attach events with textboxes easier and almost effortlessly compared to using input and javascript

    Comparative Summary

    • Faster/easier programming
    • Compatibility with other ASP.NET controls

    Next when I dynamiclly add inputs (via javascript) I can’t use TextBox’s I need to use <inputs type=”text”>.

    Whether your using ASP.NET or Javascript, dynamically added controls gets very messy. It’s much easier to hide/show controls when needed (or use repeaters or datagrids).

    Finally wouldn’t it be faster to render the normal input? If I code with , that has to be rendered where if I use it simply needs to be displayed.

    I don’t think it’s fair to compare the speed of ASP.NET to HTML/Javascript applications. ASP.NET was meant to render ASP.NET controls, and using HTML controls inside an ASP.NET isn’t going to have any noticeable performance gains.

    ASP.NET vs HTML/Javascript

    I feel like your question essentially amounts to “Why not use a brick on a nail, rather than a hammer?” ASP.NET is a framework, and was built with ASP.NET controls in mind. It’s purpose is to allow things to be programmed faster, easier while abstracting away most things (usually trivial, repetitive ones) that would normally be done with Javascript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been a PHP developer but recently need to work on some project using
I've been a PHP developer for many years now, with many tools under my
I've been a PHP Developer for a few years now and I've recently been
I have been a desktop developer for a few years mostly doing object oriented
I've been doing PHP/MySQL websites with shared hosting providers for the last couple years.
I've been a software developer for over twenty years, programming in C, Perl, SQL,
I am soon to join a PHP project that has been developed over the
I've been doing web application development for the last 3 years in PHP. I'm
I have been a long-term .NET developer, but dabble in Java and PHP development
A preamble: I've been using PHP for over 8 year every now and then,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.