Controls versus standard HTML

后端 未结 11 1569
醉话见心
醉话见心 2020-12-15 09:55

I\'m getting into ASP.NET (C# - I know it doesn\'t matter for this particular question, but full disclosure and all that), and while I love that the asp:-style

11条回答
  •  余生分开走
    2020-12-15 10:21

    I too am on my adventure into ASP.NET and have also had similar frustrations.. However, you soon get used to it. You just need to remember, the reason you dont have the tedious HTML crafting is because the ASP.NET controls do it all for you.

    To some extent you can control/tweak these things, even if it means inheriting the control and tweaking the HTML output from there.

    I have had to do that in the past, where certain controls were not passing W3C validation by default by putting some extra markup here and there, so I simply overrode and edited as necessary (a fix that too literally a couple of minutes)..

    I would say learn about how the controls system works.. Then knock a few together yourself, this has really helped me grok whats going on under the hood, so if I ever get any problems, I have an idea where to go.

提交回复
热议问题