G
Guest
Hi
I’m migrating a standard ASP application to ASP.NET. When I designed the ASP app, I tried to perform as much processing on the client side as possible, so I don’t have to make too many trips to the web/database servers, etc
Now in ASP.NET, if I would use all the new features and server controls offered by ASP.NET, I feel like every time a user clicks on the form it’s posted to the web server, even for such simple tasks as data validation (Validator Control). I mean every time I want to use a server control, I’m asking myself “Why not use a simple html client side element?â€
So I guess a well designed ASP.NET app will not try to use all this new features and server controls, but instead will try to balance server and client side processing and will still use some or a lot of client side code
Let’s say I want to display some data from the database in an html table by calling a stored procedure. I guess I should never use DataGrid, DataList controls for this task (even though they support data binding) since they’re very “heavy†and I’m not using all the functionality they offer anyway, I’m just displaying the data
Instead I should use HtmlTable or maybe even better use LiteralControl or make it the way I do it ASP using Response.Write? I mean can anybody tell me why not? Why using server controls is better then using Response.Write, performance-wise? And from this perspective why is ASP.NET better then ASP? Aren’t all the advantages of ASP.NET offset by the increased level of communication between the browser and the web server
Thank you
Vitaly D.
I’m migrating a standard ASP application to ASP.NET. When I designed the ASP app, I tried to perform as much processing on the client side as possible, so I don’t have to make too many trips to the web/database servers, etc
Now in ASP.NET, if I would use all the new features and server controls offered by ASP.NET, I feel like every time a user clicks on the form it’s posted to the web server, even for such simple tasks as data validation (Validator Control). I mean every time I want to use a server control, I’m asking myself “Why not use a simple html client side element?â€
So I guess a well designed ASP.NET app will not try to use all this new features and server controls, but instead will try to balance server and client side processing and will still use some or a lot of client side code
Let’s say I want to display some data from the database in an html table by calling a stored procedure. I guess I should never use DataGrid, DataList controls for this task (even though they support data binding) since they’re very “heavy†and I’m not using all the functionality they offer anyway, I’m just displaying the data
Instead I should use HtmlTable or maybe even better use LiteralControl or make it the way I do it ASP using Response.Write? I mean can anybody tell me why not? Why using server controls is better then using Response.Write, performance-wise? And from this perspective why is ASP.NET better then ASP? Aren’t all the advantages of ASP.NET offset by the increased level of communication between the browser and the web server
Thank you
Vitaly D.