IDE interface question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm working on a web app in .NET. How the heck to I set the IDE so it will (1) leave my whitespace on the Design page alone, and (2) leave my Server Control formats alone (e.g. it keeps changing <ASP:Checkbox ID="MyCheckbox" runat="server" Text="Check Me" /> to <asp:Checkbox ID="MyCheckbox" runat="server" Text="Check Me"></ASP:Checkbox>.....

tia for any ideas/suggestions,
Sue
 
Hi Sue,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you have two questions. The first one
is how to preserve white spaces on the ASP.NET page. The second one is how
to leave the ASP tag as you modified in VS.NET IDE. If there is any
misunderstanding, please feel free to let me know.

If you need to preserve white spaces on an HTML page, please try to use
"&nbsp;" (without quotes) as a space. Use "&nbsp;&nbsp;&nbsp;" for three
spaces. If you're pressing space bars in HTML view, only one space will be
saved, the others are truncated.

As far as I know, the IDE will automatically change the tag back to the
following format when you switch between Design View and HTML View. This
behavior of VS.NET IDE is by design.

<asp:Checkbox></asp:Checkbox>

Because VS.NET will be parse the page and format tags with it's designed
format.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
You have run into one of lifes great mysteries. MS thinks they know better
than their users in this case. There are options in the Tool menu but they
don't do as you want. If you watch these newsgroups for a while you will
see the same types of questions. MS people say to wait until next release.
I have heard of people that never go to the design view since switching
changes everything. I learned the hard way after formating the HTML the way
I liked which took an hour and in one second VS destroyed my work.

Lloyd Sheen

Sue said:
I'm working on a web app in .NET. How the heck to I set the IDE so it will
(1) leave my whitespace on the Design page alone, and (2) leave my Server
Control formats alone (e.g. it keeps changing <ASP:Checkbox ID="MyCheckbox"
runat="server" Text="Check Me" /> to <asp:Checkbox ID="MyCheckbox"
 
Lloyd, thanks - I was afraid this was the case. Sigh. It's almost enough to make me want to revert back to crayons and paper. I did experiment a bit with the options under the Text Editor/Options, but, as you said, they don't work quite the expected way. It'd be very nice if MS would add the ability to collapse/expand html in the HTML page as well as fix these little problems, huh?

thanks,
Sue
 
Hi Sue,

It was nice to hear that you have got the answer. Thanks for sharing your
experience with all the people here. If you have any questions, please feel
free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top