Click here to Skip to main content
14,387,469 members
   

ASP.NET

 
GeneralRe: What's so bad about webforms? Pin
F-ES Sitecore19-Nov-19 0:18
mveF-ES Sitecore19-Nov-19 0:18 
GeneralRe: What's so bad about webforms? Pin
Richard Deeming19-Nov-19 2:21
mveRichard Deeming19-Nov-19 2:21 
GeneralRe: What's so bad about webforms? Pin
F-ES Sitecore19-Nov-19 2:35
mveF-ES Sitecore19-Nov-19 2:35 
GeneralRe: What's so bad about webforms? Pin
jkirkerx19-Nov-19 13:59
professionaljkirkerx19-Nov-19 13:59 
GeneralRe: What's so bad about webforms? Pin
F-ES Sitecore20-Nov-19 0:04
mveF-ES Sitecore20-Nov-19 0:04 
GeneralRe: What's so bad about webforms? Pin
jkirkerx20-Nov-19 11:43
professionaljkirkerx20-Nov-19 11:43 
GeneralRe: What's so bad about webforms? Pin
DerekT-P20-Nov-19 2:22
professionalDerekT-P20-Nov-19 2:22 
GeneralRe: What's so bad about webforms? Pin
DerekT-P19-Nov-19 1:23
professionalDerekT-P19-Nov-19 1:23 
I think F-ES Sitecore has covered a lot in his comments. I do understand what you're saying about Webforms sort of "hijacking" your HTML and can see that could have impacts in all sorts of areas. I came to ASP.Net from a Classic ASP background where I was very familiar with HTML, CSS et al and initially found ASP.Net confusing. It wraps certain input elements in spans etc which can play havoc with styling. I can imagine it would be doubly baffling if you use the visual designer. I work 100% in code and (once I'd twigged about the wrapping of radio buttons in spans) haven't really come across issues with its HTML generation.

As for AJAX - I was building single-page applications years before anyone coined the term Ajax, so tend to either roll my own Ajax from scratch or, for simple use-cases, use JQuery's features. Dead simple, and no extraneous Javascript files inserted for you by ASP.Net - no need for ScriptMangler or any stuff like that.

ViewState can be a massive issue, but only if you leave it at default settings. You have a lot of control over what goes in viewstate and if it's not needed, don't put it in there. I've seen sites with viewstates extending to megabytes of data that only needed a couple of hundred, if that. And as F-ES Sitecore says, that's nothing to do with sessions. And of course, you can have multiple forms on a page. (E.g. I often have a login / reset password form, a search form, and a "main" form on just about every page).

Performance will be poor if you have a poorly designed application that doesn't make proper use of things like postbacks, viewstate, scripting etc. But that's true of any language / framework. I've found that when I take an old app I've written and re-write it, it performs better - regardless of the original and rewrite languages. That's not a language or framework issue, that's me having learnt "stuff" and building a better solution.

I guess in practice I only use the bits of Webforms that make my life easier or make the application more useable / reliable. I do roll a lot of my own code and make it very situation-specific, so it's lightweight and doesn't try to be all things to all people. That said, I've built up a library of techniques that I re-use time and again, and that makes development very fast in Webforms.

Really appreciate your input and comments; always interesting to get someone else's perspective on these things! Smile | :)

(PS Still waiting for your site to load Wink | ;) )
AnswerRe: What's so bad about webforms? Pin
F-ES Sitecore19-Nov-19 0:30
mveF-ES Sitecore19-Nov-19 0:30 
AnswerRe: What's so bad about webforms? Pin
A_Griffin20-Nov-19 6:57
MemberA_Griffin20-Nov-19 6:57 
GeneralRe: What's so bad about webforms? Pin
DerekT-P20-Nov-19 10:05
professionalDerekT-P20-Nov-19 10:05 
AnswerRe: What's so bad about webforms? Pin
Steve Naidamast24-Nov-19 7:53
professionalSteve Naidamast24-Nov-19 7:53 
GeneralRe: What's so bad about webforms? Pin
DerekT-P24-Nov-19 10:18
professionalDerekT-P24-Nov-19 10:18 
GeneralRe: What's so bad about webforms? Pin
Steve Naidamast25-Nov-19 5:30
professionalSteve Naidamast25-Nov-19 5:30 
QuestionFacing Issues while reading an excel file and inserting it's rows to a my sql tabble. Working fine in local machine but giving error after deployement Pin
Member 1465772316-Nov-19 4:23
MemberMember 1465772316-Nov-19 4:23 
AnswerRe: Facing Issues while reading an excel file and inserting it's rows to a my sql tabble. Working fine in local machine but giving error after deployement Pin
phil.o16-Nov-19 5:08
mvephil.o16-Nov-19 5:08 
GeneralRe: Facing Issues while reading an excel file and inserting it's rows to a my sql tabble. Working fine in local machine but giving error after deployement Pin
Member 1465772317-Nov-19 8:29
MemberMember 1465772317-Nov-19 8:29 
GeneralRe: Facing Issues while reading an excel file and inserting it's rows to a my sql tabble. Working fine in local machine but giving error after deployement Pin
phil.o17-Nov-19 10:26
mvephil.o17-Nov-19 10:26 
QuestionChange datatable from column to row and bind it to gridview Pin
Anand Solomon14-Nov-19 6:19
MemberAnand Solomon14-Nov-19 6:19 
QuestionAccessing Master Page Methods in Content Page and Accessing this.Master page Control from Class Library Pin
Member 1115418813-Nov-19 19:34
MemberMember 1115418813-Nov-19 19:34 
AnswerRe: Accessing Master Page Methods in Content Page and Accessing this.Master page Control from Class Library Pin
F-ES Sitecore14-Nov-19 0:23
mveF-ES Sitecore14-Nov-19 0:23 
GeneralRe: Accessing Master Page Methods in Content Page and Accessing this.Master page Control from Class Library Pin
Member 1115418814-Nov-19 1:17
MemberMember 1115418814-Nov-19 1:17 
GeneralRe: Accessing Master Page Methods in Content Page and Accessing this.Master page Control from Class Library Pin
Richard Deeming14-Nov-19 2:25
mveRichard Deeming14-Nov-19 2:25 
Question[Solved] Retrieve Session Array variable to Array variable in Class Library Project Pin
Member 1115418813-Nov-19 1:00
MemberMember 1115418813-Nov-19 1:00 
AnswerRe: Retrieve Session Array variable to Array variable in Class Library Project Pin
Richard Deeming13-Nov-19 3:15
mveRichard Deeming13-Nov-19 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.