Web页面与母版页设计黑页

时间:2016-06-06 15:38:21

标签: c# asp.net

Picture of the black screen

当我在visual studio 2013中按视图设计器时,有人可以告诉我为什么我的网页表单看起来像这样吗?它以黑色屏幕显示。此页面的源代码如下。

             
        
                     搜索ID:                                               
                                               

    <div class="form-group">
        <label class="col-lg-4 control-label">First Name:</label>
        <div class="col-lg-4">
            <asp:TextBox ID="tbxFirstName" class="form-control" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="form-group">
        <label class="col-lg-4 control-label">Last Name:</label>
        <div class="col-lg-4">
            <asp:TextBox ID="tbxLastName" class="form-control" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="form-group">
        <label class="col-lg-4 control-label">Email Address:</label>
        <div class="col-lg-4">
            <asp:TextBox ID="tbxEmailAddress" class="form-control" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="form-group">
        <label class="col-lg-4 control-label">Phone Number:</label>
        <div class="col-lg-4">
            <asp:TextBox ID="tbxPhoneNumber" class="form-control" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="form-group">
        <label class="col-lg-4 control-label">Address:</label>
        <div class="col-lg-4">
            <asp:TextBox ID="tbxAddress" class="form-control" runat="server"></asp:TextBox>
        </div>

    </div>
    <div class="form-group">
        <label class="col-lg-4 control-label">Postal Code:</label>
        <div class="col-lg-4">
            <asp:TextBox ID="tbxPostalCode" class="form-control" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="form-group">
        <label class="col-lg-4 control-label">Country:</label>
        <div class="col-lg-4">
            <asp:TextBox ID="tbxCountry" class="form-control" runat="server"></asp:TextBox>
        </div>
    </div>


    <div class="col-sm-offset-4 col-sm-4">
        <asp:Button ID="btnSave" runat="server" class="btn btn-primary btn-block" Text="Save Changes" OnClick="btnSave_Click" />
        <br />

    </div>
</form>

1 个答案:

答案 0 :(得分:0)

解决了谢谢。由于css相关的问题导致的问题。