CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2008 Tags:
Item Type: NewsGroup Date Entered: 3/19/2008 10:54:25 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 5 Views: 163 Favorited: 0 Favorite
6 Items, 1 Pages 1 |< << Go >> >|
ispeedonthe405
Asp.Net User
Design view actions mangle source3/19/2008 10:54:25 AM

0

Let me start by saying I'm a C/C++ guy and I'm by no means an ASP.NET expert; the web stuff is a hobby for me. However, I'm pretty sure this doesn't come under user error.

I've got a very simple page with a panel and an AJAX accordion. All I have to do is drag the controls around (via absolute positioning) in the Design view and the source gets mangled. By mangled, I mean the markup inside the Accordion definition gets partially duplicated outside the block and/or the tags are moved around without taking their contents with them, and the formatting is blown; all of which of course break the page. I can also sometimes get the same thing to happen just by changing the CSS class of the Accordion in the Properties window.

This is with Visual Studio '08 Professional and the AJAX Toolkit installed as demonstrated in the video I watched here (which are fantastic resources by the way, thank you!). I'm inclined to believe this has something to do with the toolkit's integration into the IDE because it sure seems like they're not playing nice together.

Any thoughts or tips?

ispeedonthe405
Asp.Net User
Re: Design view actions mangle source3/19/2008 11:59:02 AM

0

Before and after shots:

 

<form id="form1" runat="server">
   
       <asp:Panel ID="Panel1" runat="server" CssClass="MenuPanel" HorizontalAlign="Center">
        
        <cc1:Accordion 
        ID="ACC1" 
        runat="server"
        SelectedIndex="0" 
        Width="200px" 
        AutoSize="Limit" 
        ContentCssClass="accordianContent" 
        CssClass="accordianMain"
        EnableTheming="False"
        FramesPerSecond="60" 
        HeaderCssClass="accordianHeader"
        HeaderSelectedCssClass="accordianHeaderSel">
        
            <Panes>
                <cc1:AccordionPane ID="AccordionPane1" runat="server">
                    <Header>I am a header</Header>
                    <Content>And I am content</Content>
                </cc1:AccordionPane>
                <cc1:AccordionPane ID="AccordionPane2" runat="server">
                    <Header>I am a header</Header>
                    <Content>And I am content</Content>
                </cc1:AccordionPane>
                 <cc1:AccordionPane ID="AccordionPane3" runat="server">
                    <Header>I am a header</Header>
                    <Content>And I am content</Content>
                </cc1:AccordionPane>
            </Panes>
            
       </cc1:Accordion>
   
   </asp:Panel>
        
    <cc1:RoundedCornersExtender
        ID="RoundedCornersExtender1"
        runat="server"
        TargetControlID="Panel1">
    </cc1:RoundedCornersExtender>
    
     
    </form>

 

 And after dragging the controls around the designer:

 
<form id="form1" runat="server">
        <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </cc1:ToolkitScriptManager>
    
        <asp:Panel ID="Panel1" runat="server" CssClass="MenuPanel" HorizontalAlign="Center">
        
            <cc1:Accordion 
            ID="ACC1" 
            runat="server"
            SelectedIndex="0" 
            AutoSize="Limit" 
            ContentCssClass="accordionContent" 
            CssClass="accordionMain"
            EnableTheming="False"
            FramesPerSecond="60" 
            HeaderCssClass="accordionHeader"
            HeaderSelectedCssClass="accordionHeaderSel">
        
                <cc1:AccordionExtender ID="ACC1_AccordionExtender" runat="server" 
					AutoSize="Limit" ContentCssClass="accordionContent" Enabled="True" 
					FramesPerSecond="60" HeaderCssClass="accordionHeader" 
					HeaderSelectedCssClass="accordionHeaderSel" TargetControlID="ACC1"></cc1:AccordionExtender>
				<cc1:AccordionPane ID="AccordionPane1" runat="server" ContentCssClass="" 
					HeaderCssClass=""><header>
I am a header
</header>
<content>
And I am content
</content>
</cc1:AccordionPane>
				<cc1:AccordionPane ID="AccordionPane2" runat="server" ContentCssClass="" 
					HeaderCssClass=""><header>
I am a header
</header>
<content>
And I am content
</content>
</cc1:AccordionPane>
				<cc1:AccordionPane ID="AccordionPane3" runat="server" ContentCssClass="" 
					HeaderCssClass=""><header>
I am a header
</header>
<content>
And I am content
</content>
</cc1:AccordionPane>
            
            </cc1:Accordion>
            
        </asp:Panel>
        
    
     
    	<cc1:RoundedCornersExtender ID="Panel1_RoundedCornersExtender" runat="server" 
			Enabled="True" TargetControlID="Panel1">
		</cc1:RoundedCornersExtender>
        
    
     
    </form>

  As you can see, the source was pretty much nuked from orbit.

And yes, this problem persists after having installed the hotfix stickied at the top of this forum.

  

 

TwoLions
Asp.Net User
Re: Design view actions mangle source3/20/2008 6:35:21 PM

0

I found the same problem, and I also notice that when you change properties in design view it does not update the source. 

I have a multi-line text box which was set to 2 lines and I changed the number of lines property to 4 lines but the source did not change even after re-publishing the site.  It does show as 4 lines in design, however.

Is there also no way to multi-select objects in design view?  That's nutty.  I had to reposition about twenty controls and their labels for a simple move and it took me half an hour!

ispeedonthe405
Asp.Net User
Re: Design view actions mangle source3/20/2008 9:33:48 PM

0

Well, this is easy enough to reproduce: I can now do it at will. It's also worse than I thought as it's not just changing the formatting.

Start with this:

 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Menu.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title>Untitled Page</title>
	<link rel="Stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
	<form id="form1" runat="server">
	<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></cc1:ToolkitScriptManager>
	<asp:Panel ID="Panel1" runat="server" CssClass="MenuPanel" HorizontalAlign="Center">
		<cc1:Accordion	ID="ACC1" runat="server" 
						SelectedIndex="0" AutoSize="Limit" 
						ContentCssClass="accordionContent"
						CssClass="accordionMain" EnableTheming="False"
						FramesPerSecond="60" HeaderCssClass="accordionHeader"
						HeaderSelectedCssClass="accordionHeaderSel">
			<Panes>			
				<cc1:AccordionPane ID="AccordionPane1" runat="server" ContentCssClass="" HeaderCssClass="">
					<header>I am Header One</header>
					<content>I am Content One</content>
				</cc1:AccordionPane>
				<cc1:AccordionPane ID="AccordionPane2" runat="server" ContentCssClass="" HeaderCssClass="">
					<Header>I am Header Two</Header>
					<Content>I am Content Two</Content>
				</cc1:AccordionPane>
				<cc1:AccordionPane ID="AccordionPane3" runat="server" ContentCssClass="" HeaderCssClass="">
					<Header>I am Header Two</Header>
					<Content>I am Content Two</Content>
				</cc1:AccordionPane>
			</Panes>
		</cc1:Accordion>
	</asp:Panel>
	<cc1:RoundedCornersExtender ID="Panel1_RoundedCornersExtender" runat="server" 
		Enabled="True" TargetControlID="Panel1">
	</cc1:RoundedCornersExtender>
	</form>
</body>
</html>

 

Then in the Design view, select the Accordion and change the CssClass property in the Properties window. Go back to Source view and I see this:

  

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Menu.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>Untitled Page</title>
	<link rel="Stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
	<form id="form1" runat="server">
	<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
	</cc1:ToolkitScriptManager>
	<asp:Panel ID="Panel1" runat="server" CssClass="MenuPanel" HorizontalAlign="Center">
		<cc1:Accordion ID="ACC1" runat="server" SelectedIndex="0" AutoSize="Limit" ContentCssClass="accordionContent"
			CssClass="MenuPanel" EnableTheming="False" FramesPerSecond="60" HeaderCssClass="accordionHeader"
			HeaderSelectedCssClass="accordionHeaderSel">
			<Panes>
				<cc1:AccordionPane ID="AccordionPane1" runat="server" ContentCssClass="" HeaderCssClass="">
					<Header>I am Header One</Header>
					<Content>I am Content One</Content>
				</cc1:AccordionPane>
				<cc1:AccordionPane ID="AccordionPane2" runat="server" ContentCssClass="" HeaderCssClass="">
					<Header>I am Header Two</Header>
					<Content>I am Content Two</Content>
				</cc1:AccordionPane>
				<cc1:AccordionPane ID="AccordionPane3" runat="server" ContentCssClass="" HeaderCssClass="">
					<Header>I am Header Two</Header>
					<Content>I am Content Two</Content>
				</cc1:AccordionPane>
			</Panes>
			<cc1:AccordionExtender ID="ACC1_AccordionExtender" runat="server" 
				AutoSize="Limit" ContentCssClass="accordionContent" Enabled="True" 
				FramesPerSecond="60" HeaderCssClass="accordionHeader" 
				HeaderSelectedCssClass="accordionHeaderSel" TargetControlID="ACC1"></cc1:AccordionExtender>
			<cc1:AccordionPane ID="AccordionPane1" runat="server" ContentCssClass="" 
				HeaderCssClass=""><header>
I am Header One
</header>
<content>
I am Content One
</content>
</cc1:AccordionPane>
			<cc1:AccordionPane ID="AccordionPane2" runat="server" ContentCssClass="" 
				HeaderCssClass=""><header>
I am Header Two
</header>
<content>
I am Content Two
</content>
</cc1:AccordionPane>
			<cc1:AccordionPane ID="AccordionPane3" runat="server" ContentCssClass="" 
				HeaderCssClass=""><header>
I am Header Two
</header>
<content>
I am Content Two
</content>
</cc1:AccordionPane>
		</cc1:Accordion>
	</asp:Panel>
	<cc1:RoundedCornersExtender ID="Panel1_RoundedCornersExtender" runat="server" Enabled="True"
		TargetControlID="Panel1">
	</cc1:RoundedCornersExtender>
	</form>
</body>
</html>

I can do this every time. Now, let's break down what it's doing here:

1) You can see it inserted a new block for <cc1:AccordionExtender>. What this is supposed to be, I don't know, but it appears to duplicate a lot of the properties of the Accordion itself. Whatever it is, Visual Studio doesn't like it and doesn't recognize it as a valid tag.

2) You can see it duplicated the Pane definitions.

Quite a mess. It looks to me like it's confused about how to write the changed Accordion entity back to the html file after updating the property.

Mikhail Arkhipo
Asp.Net User
Re: Design view actions mangle source3/20/2008 11:21:23 PM

0

Thanks for the detailed repro. I opened a bug on this for the service pack.


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
ispeedonthe405
Asp.Net User
Re: Design view actions mangle source3/21/2008 3:23:57 AM

0

Groovy, thanks.

6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Learning Java Authors: Patrick Niemeyer, Jonathan Knudsen, Pages: 954, Published: 2005

Web:
Design view actions mangle source - ASP.NET Forums All I have to do is drag the controls around (via absolute positioning) in the Design view and the source gets mangled. ...
Download Mangle-It Java Source Code Obfuscator 2.1.3 Free trial ... View: screenshot. Size: 1.91 MB License: Shareware ... Mangle-It C++ Source Code Obfuscator 2.2.4 32x32 pixels icon .... QuickUML is a software design tool that tightly integrates a core set of UML models with code generation. ...
Mangle It Java Source Code Obfuscator - Free Downloads - Mangle It ... Mangle-It C++ Source Code Obfuscator... Mangle-It C++ Obfuscator makes C/C++ code .... Its intuitive design gives you a one click DVD backup solution. ...
Mangle-It C++ Source Code Obfuscator 2.2.4 by PC Sentinel Software Action · Adventure & Roleplay · Arcade · Board · Card ... Be the first to Write a Review of Mangle-It C++ Source Code Obfuscator 2.2.4 ... View all press releases. ... 0.18 Micron RFCMOS Process Design Kit (PDK) (4/17/2009 12:00 PM UTC) ...
CodeProject: Member Profile: Russell Mangel. Free source code and ... Member Profile: Russell Mangel - Free source code and tutorials for Software developers and Architects. ... Design and Architecture ...

Design view actions mangle source - ng.asp-net-forum ... Design view actions mangle source, > ROOT > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2008, Date: 3/19/2008 10:54:25 AM, Replies: 5, ...
'Unrecognized tag prefix or device filter' for custom controls in ... Design view actions mangle source - ng.asp-net-forum ... 'unrecognized tag prefix or device filter' for custom controls in referenced ...
VS 2008 writing and debugging a Windows Service - ng.asp-net-forum ... Design view actions mangle source - ng.asp-net-forum ... vs 2008 writing and debugging a windows service · debug opens dreamweaver · visual ...
How to install the VS2008 ISO file - ng.asp-net-forum ... design view actions mangle source · visualstudio orcas beta /// the namespace ' resources' error · copy website -> ftp very slow · question about this forum ...
obfuscator in VS2005 - ng.asp-net-forum.visual_studio_2005 Design view actions mangle source - ng.asp-net-forum ... Download Mangle-It C++ Source Code Obfuscator 2.2 ... Provider--Patient Communication ...






how to go straight to snippet code list

a better way to see applied styles?

2008 b2 and the hidden toolbox system.web.dll at version 2.0.50727.833

change item positioning from relative to absolute in visual web developer 2008

using linq with asp.net - templates

intellisence doesn't work

application development server problem on windows 2008 server

"resetting" visual studio to different configurations

error: visual studio (orcas) beta not working. assembly missing

web application project

.net 3.5 extensions

error running in vs 2008

what does it take to add xml-script intellisense and designer support?

orcas beta 1 download location

vs 2008 - problem ide renderization

do i have to wait until january to publish 3.5 site?

server control errors in design- and split-view...

vs 2008 support network database projects?

asp.net futures and the release of vs2008

vs2008 asp.net configuration menu option missing

migrating linq db sever to production server

ajax pages developed in vs 2005 stops working in vs 2008

compiling error in vs2008 on vista ultimate, related to web.config

no intellisense for skin files?

visual studio 2008 standard vs professional

can't debug my asp.net project

vs2008: suddendly is making events code inline instead of in the codebehind file?

masterpage reference in pages support for vs 2008

reportviewer and vista x64

vs 2008 upgrade version

   
  Privacy | Contact Us
All Times Are GMT