Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/273.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 简单的Gridview和按钮问题。我正在学习Asp.Net。请帮帮我!_C#_Asp.net_Html - Fatal编程技术网

C# 简单的Gridview和按钮问题。我正在学习Asp.Net。请帮帮我!

C# 简单的Gridview和按钮问题。我正在学习Asp.Net。请帮帮我!,c#,asp.net,html,C#,Asp.net,Html,我不会说我浪费了时间,但我花了几个小时来改变这个。但是,他进来了。谁能帮我一下吗。 在以下代码中: 我需要在禁用位置(标题)和gridview之间使用中断 我希望网格的边框颜色为“无”。我不想要任何颜色 我希望两个按钮禁用或停用和取消显示在gridview的正下方。在页面的中间。 请帮帮我!!非常感谢 <body> <form id="form1" runat="server"> <div style="display: block; backgr

我不会说我浪费了时间,但我花了几个小时来改变这个。但是,他进来了。谁能帮我一下吗。 在以下代码中:

  • 我需要在禁用位置(标题)和gridview之间使用中断
  • 我希望网格的边框颜色为“无”。我不想要任何颜色
  • 我希望两个按钮禁用或停用和取消显示在gridview的正下方。在页面的中间。<李> 请帮帮我!!非常感谢

    <body>
        <form id="form1" runat="server">
    
        <div style="display: block; background: url(images/reusable_blue_bg.jpg) repeat-x 0 -15px;
            border-left: #88b9c7 1px solid; border-bottom: #88b9c7 1px solid; border-top: #88b9c7 1px solid;
            border-right: #88b9c7 1px solid; padding: 0px 2px; height: 236px; min-height: 236px;
            height: auto; margin-left: auto; margin-right: auto;">
            <table align="center" style="width: 554px; border-top-style: none; border-right-style: none;
                border-left-style: none; border-bottom-style: none" id="TABLE1">
    
                <tr>
                    <td align="center" colspan="5" style="font-weight: normal; font-size: 20px; margin: 0px;
                        font-family: Arial; color: #1e7c9b;">
                        Disable Location</td>
                </tr>
    
    
    禁用位置
    
    我需要这里的1号

                <asp:GridView ID="disableloc" runat="server" AutoGenerateColumns="False" DataKeyNames="LocationName"
                    DataSourceID="" AllowPaging="True" EnableViewState="true" BorderStyle="None">
    
    
    
    我想我想要两个在这里

                </asp:GridView>
    
    
    
    我想要3个在这里

                <tr align ="center" style="position:fixed">
                   <asp:ImageButton ID="btnDisable" runat="server" ImageAlign="Middle" ImageUrl="~/images/green-deactivate.gif" OnClick="btnDisable_Click"
                        ValidationGroup="group1" />
    
                   <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/images/cancel.gif" OnClick="btnCancel_Click" />
    
                </tr>
             </table>
    
        </div>
    
    
    
    非常感谢

  • 在标题td的样式上使用padding bottom来获取标题和gridview之间的空间
  • 在GridView上使用gridlines=“无”
  • 将GridView和按钮都包装在tds中,现在它们直接位于tr中,这并不完全符合html的要求,因此按钮位于表的左上角

  • 你能发布什么不起作用吗?(代码少了,单词多了!)我确实编辑了代码,使它变得简单。谢谢你,尼克斯!!