Click here to Skip to main content
14,386,394 members
Rate this:
Please Sign up or sign in to vote.
See more:
Question in title. Are there any benefits of one over the other. I'm thinking that there will be a higher load on the server if we use the server control text-boxes that "runat=server". But that's only a guess, I'm not entirely sure.

This post should have been in the ASP .NET area. :(
Updated 29-Nov-12 13:00pm
Sergey Alexandrovich Kryukov 29-Nov-12 17:45pm
What "old" and "new" school do you mean? Also, ASP.NET is NOT ASP + .NET. Tag: ASP.NET.
FourCrate 29-Nov-12 17:59pm
When I say old school, I mean using a plain html form with text boxes and a submit button and a form method (such as POST) rather than something like:

<asp:TextBox ID="password" runat="server" Text="Password:">
Sergey Alexandrovich Kryukov 29-Nov-12 18:03pm
OK. The answer really depends on what you want to achieve. Both ways can be used. Performance problems are usually related to postbacks if they are used in a wrong way or overused, but they provide extra flexibility. The whole design should be considered -- there is no a cookbook recipe for the choice.
FourCrate 29-Nov-12 18:05pm
Ok thanks, maybe say this as a solution so you can have some points. You've helped me on a number of occasions thanks!
Sergey Alexandrovich Kryukov 29-Nov-12 18:16pm
Oh, did I? My pleasure, anyway :-)
FourCrate 29-Nov-12 18:02pm
I changed the tagging.
Sergey Alexandrovich Kryukov 29-Nov-12 18:16pm
Thumbs up.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1


Your Question only having answer,

Is it better to access HTML form text-box data the old-school way or using server control text-box?

If you use Server controls you can do more operations, compared to HTML form text box,

and it depends on the use age, if your doing basic operation go with HTML , if you want to do more flexible operation go for server control

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100