Re: HTML AutoFormatting (with an actual question)

From: Michael J. Mooney (mike_mooney_at__yahoo.com.NOSPAM)
Date: 06/14/04


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
>
>


Relevant Pages

  • Re: Flourescent lamp -Wasting Power?
    ... > to the real power being dissipated by that electronic ballast. ... > kludge up a setup to measure the real power - without frying myself. ... > stupid design that I just multiplied current times voltage in my head ... > controlled by a single pole four position rotary switch which sequences ...
    (sci.electronics.design)
  • Re: About interactivity.
    ... Well that was done with Strowger and other mechanical exchanges. ... It is a matter of design not language. ... How in the Earth did you make a change in the equivalent to changing the engineering of a telephone switch without interrupting the connections going on? ... how did you with Strowger or Crossswitches did you swapped exchanges without dropping the connections they were serving? ...
    (comp.lang.forth)
  • RE: How to switch views using command button
    ... Private Sub SwitchBtn_Click ... Set accObj = CurrentProject.AllForms ... >> I wonder if there is such code that allows me to switch between Design View ...
    (microsoft.public.access.forms)
  • Re: Lets talk about input protection against ESD (human body).
    ... >that can come from a persons finger, through the switch body, and onto ... >plastic housing with a plastic button surface. ... >send a design out to a test lab. ... I'm trying to design this right up ...
    (sci.electronics.design)
  • Re: Designing a lab power supply for tube experimenting
    ... Could i just design it ... A second high voltage low-current supply for screened grids or beam ... Again it should be potentiometer derived because it may have to ... A hefty rotary switch and a string of high wattage ...
    (sci.electronics.design)