Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.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
Asp.net asp:更改密码填充_Asp.net_Css_Change Password - Fatal编程技术网

Asp.net asp:更改密码填充

Asp.net asp:更改密码填充,asp.net,css,change-password,Asp.net,Css,Change Password,因此我使用asp:changePassword,它显示允许用户显示密码的表单; 然后我将面板置于屏幕中央。但是,我想在行之间添加间距/单元格填充: 到目前为止,我已经: <div style="position:relative;left:300px;top:100px;padding:10px;"> <asp:ChangePassword ID="ChangePassword2" CancelDestinationPageUrl="~/Default.aspx"

因此我使用asp:changePassword,它显示允许用户显示密码的表单; 然后我将面板置于屏幕中央。但是,我想在行之间添加间距/单元格填充: 到目前为止,我已经:

<div style="position:relative;left:300px;top:100px;padding:10px;">
       <asp:ChangePassword ID="ChangePassword2" CancelDestinationPageUrl="~/Default.aspx" ContinueDestinationPageUrl="~/Default.aspx" runat="server">

       </asp:ChangePassword>
    </div>

我试过: TextBoxStyle CssClass&BorderPadding并尝试将div定位在changePassword中,并使用“class”将其居中

我看到有一个,然后创建表和行等

有没有更简单的方法?我想做的就是用“cellpadding=5px”分隔changePassword面板中的每一行

请告知,谢谢

编辑:


我认为您需要使用GridView控件。然后在标记中,确保将cellpadding和cellspacing设置为零,然后应用以下CSS

table { border-collapse: collapse; }
table tr, table td, table th { border: solid 5px #000; margin: 0; padding: 0; }

@Rachel_Gallen谢谢,但它不允许我将asp:changePassword放在asp:gridview中,反之亦然。我添加了代码作为对原始消息的编辑,所以你还是接受了我关于gridview的建议?那应该值得投一票嘿,Rach…(请看我之前的评论)它不允许我在gridView中放置changePassword,所以需要更改它…好主意吗?哦,我以为你已经解决了它-你的gridView editable=true了吗?请看这里的datagrid代码示例,也请看此链接重新更改密码:
table { border-collapse: collapse; }
table tr, table td, table th { border: solid 5px #000; margin: 0; padding: 0; }