Is the design view for aspx pages in Visual Studio useful?

后端 未结 7 1730
日久生厌
日久生厌 2021-01-15 13:52

I have never really found the design view in Visual Studio useful when developing aspx pages, and so I basically never use it.

Am I missing something or is it just o

相关标签:
7条回答
  • 2021-01-15 14:23

    Is the design view for aspx pages in Visual Studio useful?

    It surely is, if you fit one of these profiles

    • You don't know HTML or CSS
    • You don't care if your HTML is readable or valid
    • You don't care if your site renders properly in anything other than IE
    • You are being forced at gunpoint into building a webpage when you have no interest whatsoever in such things.
    • You have given up on life
    0 讨论(0)
  • 2021-01-15 14:23

    I only use it to auto-generate event methods in the code behind by double clicking on buttons, etc. It saves some time compared to writing it manually.

    0 讨论(0)
  • I generally like to use to as a quick check for does my CSS/HTML look reasonably well prior to checking it in a real browser. It is also handy for simple text manipulation when you want to just enter raw HTML, i.e. editing your HTML resume.

    Apparently the new VS 2008 designer has alot of new features for CSS, they may be worth looking at in greater detail. They are mostly directed at dreamweaver esque functionality to allow you to manage/apply styles and CSS.

    That said I am using VS 2008 and almost view it under the split view that allows me to see the design and markup at the same time.

    Good luck.

    0 讨论(0)
  • 2021-01-15 14:25

    I dont use it to layout controls as it is quite slow but they have improved it in vs2008. I do find it saves a bit of time dragging a user control onto it but would prefer to lay controls out properly as it genrates some dirty html.

    Saying that we recruited 2 developers recently who insist on using it so each to their own.

    0 讨论(0)
  • 2021-01-15 14:27

    I only use it for bringing up SmartTag on things like GridView, DetailsView, and DataSource rather than generating all the tedious BoundField and Template controls by hand. Usually, this is only the first time it's configured. Afterwards I generally edit the mark up by hand because I convert some BoundFields into my own BoundField-derived class that supports different types of validation.

    0 讨论(0)
  • 2021-01-15 14:32

    It's useful only if you are trying to generate your button click events the quick way, your page-lifecycle events the easy way, or to set up your demoware controls (like the gridview, the datasources, etc).

    Other than that, leave it be.

    Even when you do want to use it, use split view if possible (like in 2008), as it prevents Microsoft form 'improving' your formatting for you.

    0 讨论(0)
提交回复
热议问题