About

I'm Mike Pope. I live in the Seattle area. I've been a technical writer and editor for over 35 years. I'm interested in software, language, music, movies, books, motorcycles, travel, and ... well, lots of stuff.

Read more ...

Blog Search


(Supports AND)

Feed

Subscribe to the RSS feed for this blog.

See this post for info on full versus truncated feeds.

Quote

The best that modern science can say for sexual abstinence is that it's harmless when practiced in moderation.

Alan Farnham



Navigation





<March 2025>
SMTWTFS
2324252627281
2345678
9101112131415
16171819202122
23242526272829
303112345

Categories

  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  

Contact Me

Email me

Blog Statistics

Dates
First entry - 6/27/2003
Most recent entry - 9/4/2024

Totals
Posts - 2655
Comments - 2678
Hits - 2,733,679

Averages
Entries/day - 0.33
Comments/entry - 1.01
Hits/day - 344

Updated every 30 minutes. Last: 4:38 AM Pacific


  11:47 PM

I've seen this question a couple of times on the forums: what happened to Grid mode (and Flow mode) in the Visual Studio Web page designer? In VS2003, the default was Grid mode, with the option to switch to Flow mode.[1] In reality, of course, Grid view is absolute (css) positioning, and flow mode is, uh, no positioning. (I'd say it's "normal" HTML, but I don't think we can say that non-CSS positioning of HTML elements is necessarily the norm these days.)

Anyway, you can still get the effect of Grid mode, no problem. To be able to x/y position a single control, select it in Design view and then choose Layout > Position > Absolute. Drag and enjoy. You can multi-select if you are so inclined.

To emulate a perma-Grid-mode, choose Layout > Position > Auto-position Options. There you will find a checkbox with a caption way too long to type out, so I'll just show you a picture:



Check the box and select the positioning option you need. Note that static is a positioning option that has exactly the same effect as Not Set, which means no attribute set at all.

Selecting this option doesn't turn the whole design surface into using Grid mode -- it just adds x/y coordinates to any new controls you add via the common UI gestures. Controls that aren't already configured for x/y positioning will still be static.

There is actually a reason for this change. An overarching philosophy for the Web page editor in this release was "no designer goo in the page." (To, um, paraphrase slightly.) In VS2003, as you'll remember, we implemented Grid mode by adding non-standard attributes to the <body> tag:

<body MS_POSITIONING="GridLayout">

None of that this time around. We output only the finest, board-approved markup.


[1] Or to drop a Grid panel thingy onto a Flow mode page.

[categories]   ,

[1] |