|
| Anyway to stop ASP.NET from uncollapsing code in HTML Source View? |
 |
Tue, 25 Mar 2008 22:22:01 +000 |
Alright, I'll try to make this short and to the point. VS2005 is really pissing
me off to no end at the moment. I'm working on a web page that has over 2600
lines in the source view. I'm trying to organize the control tags in divisions
so it's easier to read and keep track of. However, when I collapse control tags
and try to organize them, the IDE seems to want to keep uncollapsing EVERYTHING
I've already collapsed regardless of where it's at in the code window. Is there
anyway to stop this from happening?
|
| Post Reply
|
| Re: Anyway to stop ASP.NET from uncollapsing code in HTML Source View? |
 |
Wed, 26 Mar 2008 01:44:21 +000 |
Uncollapse happens when give region is reparsed. Not every parse is incremental.
If you are switching from Design view, for the editor it really like a new file,
so it loses track of the collapsed regions. I don't think there is a
workaround.
|
| Post Reply
|
| Re: Anyway to stop ASP.NET from uncollapsing code in HTML Source View? |
 |
Wed, 26 Mar 2008 02:01:15 +000 |
Thanks for the reply Mikhail. This problem doesn't happen when switching from
design view to source view, it happens when I'm just in source view and I move
tags around. Every control on the page is positioned absolutely, so the only
thing I'm trying to do is group the tags that go together (there's 7 columns of
controls for each day of the week, and they're the same across all 7 days). But
since there's over 400 controls on this page, it's extremely annoying when all
the collapsed tags just get uncollapsed for no reason. Just saving the file may
cause it to uncollapse. But if there's no other way around it then I just have
to deal with it.
|
| Post Reply
|
| Re: Anyway to stop ASP.NET from uncollapsing code in HTML Source View? |
 |
Wed, 26 Mar 2008 18:26:13 +000 |
Sorry for the double post, but this is an update to yesterday's post. I've
found that Visual Web Developer 2008 does NOT have this problem. Since I can
only use VWD2008 Express here at work (boss won't get a license for VS2008, so
no Source Safe), I can only use it to fix my tags, then copy it back over to
VS2005. Hope this info helps someone else who may be having the same or a
similar problem.
|
| Post Reply
|
| Re: Anyway to stop ASP.NET from uncollapsing code in HTML Source View? |
 |
Wed, 26 Mar 2008 19:01:18 +000 |
Correct. VWD 2008 has improved incremental parser and even updates from Design
view are incremental so it has more robust support for the markup collapse.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|