Search

HTML screwed after doubleclicking a button in design view by SeRiAlKiL

Closed
as Fixed Help for as Fixed

0
0
Sign in
to vote
Type: Bug
ID: 327560
Opened: 2/7/2008 3:00:34 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
Once building my html in my masterpage, i switch in design time and i doubleclick a button to assign a "onclick" event to him

After the double click, the event is correctly assigned to the button, but the html aound the button is screwed

The same thing happen if i switch to design time and i drag'n'drop a custom .ascx into the masterpage

After the drop the html is screwed in the same way
Details (expand)
Product Language
English

Version

Visual Studio Code Name "Orcas" (June 2007 CTP)
Operating System
Windows XP Professional
Operating System Language
Italian
Steps to Reproduce
The html section is this

<table width="884" border="0" cellpadding="0" cellspacing="0" class="testo-barra">
        <!--DWLayoutTable-->
        <tr>
         <td width="884" height="34" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <!--DWLayoutTable-->
            <tr>
             <td width="26" height="34" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
             <td width="39" valign="middle"><img src="<%=UiUtils.GetPath%>/private_images/calendario.gif" width="29" height="28" /></td>
             <td width="210" valign="middle"><strong><a href="#">LAST MINUTE &raquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">B&amp;B &raquo;</a></strong></td>
             <td width="330" valign="middle">|&nbsp;&nbsp;NEWSLETTER <asp:TextBox runat="server" ID="txtNewsletter" CssClass="textbox" Width="220"></asp:TextBox></td>
             <td width="70" valign="middle"><asp:ImageButton runat="server" ID="cmdGo" ImageUrl="~/private_images/go.gif" /></td>
             <td width="60" valign="middle">| METEO</td>
             <td width="149" valign="middle"><img src="<%=UiUtils.GetPath%>/private_images/meteo.gif" width="86" height="23" /></td>
            </tr>
         </table>
         </td>
        </tr>
        <tr>
         <td height="31" valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
        </tr>
     </table>

switch to design and doubleclick the image button
Actual Results
<table width="884" border="0" cellpadding="0" cellspacing="0" class="testo-barra">
        <!--DWLayoutTable-->
        <tr>
         <td width="884" height="34" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <!--DWLayoutTable-->
            <tr>
             <td width="26" height="34" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
             <td width="39" valign="middle"><img src="<%=UiUtils.GetPath%>/private_images/calendario.gif" width="29" height="28" /></td>
             <td width="210" valign="middle"><strong><a href="#">LAST MINUTE &raquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a hr|&nbsp;&nbsp;NEWSLETTER <asp:TextBox runat="server" ID="txtNewsletter" CssClass="textbox" Width="220"></asp:TextBox></td>
             <td width="70" valign="middle"><asp:ImageButton runat="server" ID="cmdGo"
                     ImageUrl="~/private_images/go.gif" onclick="cmdGo_Click2" /></td>
             <td width="60" valign="middle">| METEO="~/private_images/go.gif" /></td>
             <td width="60" valign="middle">| METEO</td>
             <td width="149" valign="middle"><img src="<%=UiUtils.GetPath%>/private_images/meteo.gif" width="86" height="23" /></td>
            </tr>
         </table>
         </td>
        </tr>
        <tr>
         <td height="31" valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
        </tr>
     </table>

As you can see there are multiple "meteo" lines and screwed hrefs
Expected Results
     <table width="884" border="0" cellpadding="0" cellspacing="0" class="testo-barra">
        <!--DWLayoutTable-->
        <tr>
         <td width="884" height="34" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <!--DWLayoutTable-->
            <tr>
             <td width="26" height="34" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
             <td width="39" valign="middle"><img src="<%=UiUtils.GetPath%>/private_images/calendario.gif" width="29" height="28" /></td>
             <td width="210" valign="middle"><strong><a href="#">LAST MINUTE &raquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">B&amp;B &raquo;</a></strong></td>
             <td width="330" valign="middle">|&nbsp;&nbsp;NEWSLETTER <asp:TextBox runat="server" ID="txtNewsletter" CssClass="textbox" Width="220"></asp:TextBox></td>
             <td width="70" valign="middle"><asp:ImageButton runat="server" ID="cmdGo" ImageUrl="~/private_images/go.gif" onclick="cmdGo_Click" /></td>
             <td width="60" valign="middle">| METEO</td>
             <td width="149" valign="middle"><img src="<%=UiUtils.GetPath%>/private_images/meteo.gif" width="86" height="23" /></td>
            </tr>
         </table>
         </td>
        </tr>
        <tr>
         <td height="31" valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
        </tr>
     </table>
TAP Code (if applicable)
 
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

Sign in to post a comment.
Posted by Microsoft on 2/7/2008 at 7:33 PM
Thanks for your feedback.

We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.
These specialized experts will follow-up with your issue.

Thank you,
Visual Studio Product Team
Sign in to post a workaround.