473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

IDE interface question

Sue
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
Jul 21 '05 #1
4 1394
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."

Jul 21 '05 #2
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" <Su*@ojd.state.or.us> wrote in message
news:DA**********************************@microsof t.com...
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

Jul 21 '05 #3
Sue
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

"Lloyd Sheen" wrote:
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" <Su*@ojd.state.or.us> wrote in message
news:DA**********************************@microsof t.com...
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


Jul 21 '05 #4
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."

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

65
by: perseus | last post by:
I think that everyone who told me that my question is irrelevant, in particular Mr. David White, is being absolutely ridiculous. Obviously, most of you up here behave like the owners of the C++...
26
by: Marius Horak | last post by:
As in subject. Thanks MH
4
by: jm | last post by:
Consider: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconwhenshouldiimplementinterfacesinmycomponent.asp // Code for the IAccount interface module. public...
20
by: Ole Hanson | last post by:
I am accessing my database through an interface, to allow future substitution of the physical datastore - hence I would like to declare in my Interface that my DAL-objects implementing the...
13
by: John Salerno | last post by:
Hi all. I have a question about interfaces now. According to the book I'm reading, when you implement an interface, the class or structure has to declare all the methods that the interface...
6
by: John Salerno | last post by:
I understand how they work (basically), but I think maybe the examples I'm reading are too elementary to really show their value. Here's one from Programming C#: #region Using directives ...
10
by: Joe | last post by:
My question is more an OOD question. I know *how* to implement both abstract classes and interfaces. Here's my question - under what circumstacnes does one use an abstract class and under what...
4
by: Ray Dukes | last post by:
What I am looking to do is map the implementation of interface properties and functions to an inherited method of the base class. Please see below. ...
5
by: Colin McGuire | last post by:
Hi all, when I write the class below Private Class employee End Class and then add the line "Implements IVF" which is an interface I have written, the IDE modifies my code to display
52
by: Ben Voigt [C++ MVP] | last post by:
I get C:\Programming\LTM\devtools\UselessJunkForDissassembly\Class1.cs(360,27): error CS0535: 'UselessJunkForDissassembly.InvocableInternals' does not implement interface member...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.