Re: HTML AutoFormatting (with an actual question)
From: Michael J. Mooney (mike_mooney_at__yahoo.com.NOSPAM)
Date: 06/14/04
- Next message: darrel: "using wwwroot as your application/project root"
- Previous message: Peter Macej: "Re: creating popup menu"
- In reply to: Michael J. Mooney: "HTML AutoFormatting (with an actual question)"
- Next in thread: Andrew McDonald: "Re: HTML AutoFormatting (with an actual question)"
- Reply: Andrew McDonald: "Re: HTML AutoFormatting (with an actual question)"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Jun 2004 14:02:14 -0400
Question 2: Is there any way in VS.NET 2003 to complete disable the Design
view? I want to make sure that I never switch to it, even by accident (I
will never do so again voluntarily).
Thanks,
-- Michael J. Mooney MCP+SB, MCAD, MCSD "Michael J. Mooney" <mike_mooney@_yahoo.com.NOSPAM> wrote in message news:ODZe7hjUEHA.384@TK2MSFTNGP10.phx.gbl... > I have resigned myself that to the undeniable fact the VS.NET (2003) will > attempt to reformat my HTML tags, making my code almost completely > indecipherable, any time I switch to the Design tab. > > Of course, this is ridiculous. However, since it quite simply cannot be > solved, my approach is to NEVER switch to the Design tab. If I do > accidentally, regardless of whether the file becomes marked with a "*" > indicating that it was changed, I immediately close the file, discarding all > changes. I believe, but have not proven, it VS.NET is sometimes saving it's > modifications to the file, because new HTML formatting still shows up now an > then. > > I just did it again by accident, and it turned my file into 317 lines of > unreadable junk. It should take at least a half hour, probably more like an > hour and a half, to return the file back to a readable state. Whoever at MS > implemented the logic for this "feature" (which actively sabotages your > code), should be fired, plain and simple (IMHO). (I said I resigned myself > to it, I didn't say I wasn't still frustrated and confused by it). > > However, my problem now is adding server controls. Usually, when a person > adds a server control to a Web Form, VS.NET automatically adds it > declaration to the .cs code-behind page, along with any declaration which is > necessary. However, this only happens when the Web Form is viewed in Design > view; if you add the control to the HTML view, it does not appear in the > code-behind page unless you switch to Design view. > > So, my question is: Is there any shortcut key or macro in VS.NET which will > synchronize the local variable declarations in the code behind page with the > runat="server" (no, MS, not runat=server) controls declared in the HTML > page, without (of course) switching to Design view? > > Thanks, > -- > Michael J. Mooney > MCP+SB, MCAD, MCSD > >
- Next message: darrel: "using wwwroot as your application/project root"
- Previous message: Peter Macej: "Re: creating popup menu"
- In reply to: Michael J. Mooney: "HTML AutoFormatting (with an actual question)"
- Next in thread: Andrew McDonald: "Re: HTML AutoFormatting (with an actual question)"
- Reply: Andrew McDonald: "Re: HTML AutoFormatting (with an actual question)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|