编辑特定页面时,Microsoft Visual Web Developer 2010崩溃

时间:2014-12-12 18:31:07

标签: visual-web-developer-2010

我已经使用Visual Web Developer很长一段时间了,除非有这个特定的网站和页面,否则从未发生过这种情况。这有点奇怪,我不知道为什么,但我有一个页面包含一个列表视图与数据绑定到它。每当我在更改后的几秒钟内在设计模式下编辑页面布局时,会弹出一个错误,指出“可视化Web开发人员遇到问题需要关闭”。这仅在编辑一个特定页面时发生,我在其他页面上有列表视图,但在编辑任何其他页面时从未遇到此错误。我不认为这个页面和其他页面之间有任何明显的差异。有没有人有任何关于为什么会这样的建议?我会包含代码,虽然我不知道代码端会导致什么...

  <%@ Page Language="VB" AutoEventWireup="false"  MaintainScrollPositionOnPostback="true"        MasterPageFile="~/Site.master" CodeFile="Equipment_Details.aspx.vb" Inherits="Equipment_Details" %>

     <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
      <style type="text/css">
     .thumbnails img { /*thumbnails is the name of style class for <img> tag.*/ 
     height: 80px;

     border: 4px solid #555; /*border around the thumbnail is 4 pixel wide and color used is the one      with 555 color code. */

     padding: 1px; /* amount of space left between the image edge and it's border */

     margin: 0 10px 10px 0; /* amount of space left between a border and the image or any content     around it. */

     }

 .thumbnails img:hover {
border: 4px solid #00ccff;

cursor:pointer;

}
    .style1
    {
        height: 304px;
    }
        .style2
        {
            height: 44px;
        }
        .style3
        {
            height: 304px;
            width: 531px;
        }
        .style4
        {
            height: 44px;
            width: 531px;
        }
        </style>

</asp:Content>


<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <html><div class="gallery" align="center"></html>
    <html>
    <asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1" 
        Width="100%">
        <EditItemTemplate>
            Picture:
            <asp:TextBox ID="PictureTextBox" runat="server" Text='<%# Bind("Picture") %>' />
            <br />
            Title:
            <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Title") %>' />
            <br />
            Description:
            <asp:TextBox ID="DescriptionTextBox" runat="server" 
                Text='<%# Bind("Description") %>' />
            <br />
            Location:
            <asp:TextBox ID="LocationTextBox" runat="server" 
                Text='<%# Bind("Location") %>' />
            <br />
            Price:
            <asp:TextBox ID="PriceTextBox" runat="server" Text='<%# Bind("Price") %>' />
            <br />
            Picture2:
            <asp:TextBox ID="Picture2TextBox" runat="server" 
                Text='<%# Bind("Picture2") %>' />
            <br />
            Picture3:
            <asp:TextBox ID="Picture3TextBox" runat="server" 
                Text='<%# Bind("Picture3") %>' />
            <br />
            Picture4:
            <asp:TextBox ID="Picture4TextBox" runat="server" 
                Text='<%# Bind("Picture4") %>' />
            <br />
            Picture5:
            <asp:TextBox ID="Picture5TextBox" runat="server" 
                Text='<%# Bind("Picture5") %>' />
            <br />
            Picture6:
            <asp:TextBox ID="Picture6TextBox" runat="server" 
                Text='<%# Bind("Picture6") %>' />
            <br />
            Horsepower:
            <asp:TextBox ID="HorsepowerTextBox" runat="server" 
                Text='<%# Bind("Horsepower") %>' />
            <br />
            Usage:
            <asp:TextBox ID="UsageTextBox" runat="server" Text='<%# Bind("Usage") %>' />
            <br />
            Harrow:
            <asp:TextBox ID="HarrowTextBox" runat="server" Text='<%# Bind("Harrow") %>' />
            <br />
            Serial_Number:
            <asp:TextBox ID="Serial_NumberTextBox" runat="server" 
                Text='<%# Bind("Serial_Number") %>' />
            <br />
            Fold:
            <asp:TextBox ID="FoldTextBox" runat="server" Text='<%# Bind("Fold") %>' />
            <br />
            Depth_Control:
            <asp:TextBox ID="Depth_ControlTextBox" runat="server" 
                Text='<%# Bind("Depth_Control") %>' />
            <br />
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                CommandName="Update" Text="Update" />
            &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancel" />
        </EditItemTemplate>
        <InsertItemTemplate>
            Picture:
            <asp:TextBox ID="PictureTextBox" runat="server" Text='<%# Bind("Picture") %>' />
            <br />
            Title:
            <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Title") %>' />
            <br />
            Description:
            <asp:TextBox ID="DescriptionTextBox" runat="server" 
                Text='<%# Bind("Description") %>' />
            <br />
            Location:
            <asp:TextBox ID="LocationTextBox" runat="server" 
                Text='<%# Bind("Location") %>' />
            <br />
            Price:
            <asp:TextBox ID="PriceTextBox" runat="server" Text='<%# Bind("Price") %>' />
            <br />
            Picture2:
            <asp:TextBox ID="Picture2TextBox" runat="server" 
                Text='<%# Bind("Picture2") %>' />
            <br />
            Picture3:
            <asp:TextBox ID="Picture3TextBox" runat="server" 
                Text='<%# Bind("Picture3") %>' />
            <br />
            Picture4:
            <asp:TextBox ID="Picture4TextBox" runat="server" 
                Text='<%# Bind("Picture4") %>' />
            <br />
            Picture5:
            <asp:TextBox ID="Picture5TextBox" runat="server" 
                Text='<%# Bind("Picture5") %>' />
            <br />
            Picture6:
            <asp:TextBox ID="Picture6TextBox" runat="server" 
                Text='<%# Bind("Picture6") %>' />
            <br />
            Horsepower:
            <asp:TextBox ID="HorsepowerTextBox" runat="server" 
                Text='<%# Bind("Horsepower") %>' />
            <br />
            Usage:
            <asp:TextBox ID="UsageTextBox" runat="server" Text='<%# Bind("Usage") %>' />
            <br />
            Harrow:
            <asp:TextBox ID="HarrowTextBox" runat="server" Text='<%# Bind("Harrow") %>' />
            <br />
            Serial_Number:
            <asp:TextBox ID="Serial_NumberTextBox" runat="server" 
                Text='<%# Bind("Serial_Number") %>' />
            <br />
            Fold:
            <asp:TextBox ID="FoldTextBox" runat="server" Text='<%# Bind("Fold") %>' />
            <br />
            Depth_Control:
            <asp:TextBox ID="Depth_ControlTextBox" runat="server" 
                Text='<%# Bind("Depth_Control") %>' />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                CommandName="Insert" Text="Insert" />
            &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancel" />
        </InsertItemTemplate>
        <ItemTemplate>
            <asp:Panel ID="Panel2" runat="server" BackColor="White" style="margin-top: 0px">

        <table style="width:100%; margin-top: 1px;">
            <tr>
                <td class="style1">
                </td>
                <td align="left" class="style3">
                    <asp:HyperLink ID="HyperLink1" runat="server" Font-Size="Medium" 
                        Font-Underline="True" ForeColor="Black" 
                        NavigateUrl="~/Pre-Owned_Equipment.aspx">&lt;&lt;Back To Equipment</asp:HyperLink>
                    <asp:Image ID="Image5" runat="server" BorderWidth="1px" Height="500px" 
                        ImageUrl='<%# Bind("Picture") %>' style="margin-top: 10px; margin-right: 0px;" 
                        Width="700px" />
                </td>
                <td align="left" class="style1">
                    <br />
                    <asp:Panel ID="Panel1" runat="server" Height="500px" ScrollBars="Vertical" 
                        style="margin-left: 6px" Width="175px">
                        <asp:ImageButton ID="ImageButton6" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture") %>' onclick="ImageButton6_Click" 
                            style="margin-top: 0px" Width="150px" />
                        <asp:ImageButton ID="ImageButton1" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture2") %>' onclick="ImageButton1_Click" Width="150px" />
                        <asp:ImageButton ID="ImageButton2" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture3") %>' onclick="ImageButton2_Click" Width="150px" />
                        <asp:ImageButton ID="ImageButton3" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture4") %>' onclick="ImageButton3_Click" Width="150px" />
                        <asp:ImageButton ID="ImageButton4" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture5") %>' onclick="ImageButton4_Click" Width="150px" />
                        <asp:ImageButton ID="ImageButton5" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture6") %>' onclick="ImageButton5_Click" Width="150px" />
                            <asp:ImageButton ID="ImageButton7" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture7") %>' onclick="ImageButton7_Click" Width="150px" />
                            <asp:ImageButton ID="ImageButton8" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture8") %>' onclick="ImageButton8_Click" Width="150px" />
                            <asp:ImageButton ID="ImageButton9" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture9") %>' onclick="ImageButton9_Click" Width="150px" />
                            <asp:ImageButton ID="ImageButton10" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture10") %>' onclick="ImageButton10_Click" Width="150px" />
                            <asp:ImageButton ID="ImageButton11" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture11") %>' onclick="ImageButton11_Click" Width="150px" />
                            <asp:ImageButton ID="ImageButton12" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("Picture12") %>' onclick="ImageButton12_Click" Width="150px" />
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    </td>
                <td align="left" class="style4">
                    <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="X-Large" 
                        ForeColor="Black" Text="Title:  "></asp:Label>
                    <asp:Label ID="Label1" runat="server" Font-Size="X-Large" 
                        Text='<%# Eval("Title") %>' ForeColor="Black"></asp:Label>
                </td>
                <td class="style2">
                    </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td align="left" class="style4">
                    <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="Large" 
                        Text="Price:" ForeColor="Black"></asp:Label>
                    &nbsp;
                    <asp:Label ID="Label6" runat="server" ForeColor="Black" 
                        Text='<%# bind("Price") %>'></asp:Label>
                </td>
                <td class="style2">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td align="left" class="style4">
                    <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Medium" 
                        ForeColor="Black" Text="Description:  "></asp:Label>
                    <asp:Label ID="Label2" runat="server" Font-Size="Medium" ForeColor="Black" 
                        Text='<%# Eval("Description") %>'></asp:Label>
                </td>
                <td class="style2">
                    &nbsp;</td>
            </tr>
        </table>

    <br/></html>
        &nbsp;&nbsp;</div></asp:Panel>

        </ItemTemplate>
                    </asp:FormView>

    </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:Sprayer_Parts_CatalogConnectionString %>" 




        SelectCommand="SELECT Picture, Title, Description, Location, Price, Picture2, Picture3, Picture4, Picture5, Picture6, Horsepower, Usage, Harrow, Serial_Number, Fold, Depth_Control, Picture7, Picture8, Picture9, Picture10, Picture11, Picture12 FROM Used_Equipment WHERE (Title = @Title)">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="Title" QueryStringField="Title" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </asp:Content>

0 个答案:

没有答案