Click here to Skip to main content
15,885,952 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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. :(
Posted
Updated 29-Nov-12 12:00pm
v4
Comments
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.
--SA
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.
--SA
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 :-)
--SA

1 solution

Hi,

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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900