当gridview增长时,如何在gridview外部保持按钮控件。 [英] How to keep a button control at bottom outside of a gridview as gridview grows.
本文介绍了当gridview增长时,如何在gridview外部保持按钮控件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Gridview底部有一个继续购物按钮。我希望每当Gridview的高度由于选择更多行而增长时,此按钮始终显示在底部。
当我尝试使用页脚模板时,该按钮位于Gridview网格线内。 />
I have a button 'Continue shopping' at the bottom of a Gridview. I want this button to appear always at the bottom whenever the height of Gridview grows due to selection of more rows.
When I tried with 'footer template' , the button is inside the Gridview Gridlines.
</Columns>
</asp:GridView>
<asp:Button ID="BtnContinueShopping" runat = "server" Text='Continue shopping' onclick="BtnContinueShopping_Click"
style="z-index: 1; left:450px; top:350px; position: absolute;width:150px;cursor:pointer; font-family:Arial; text-align:center; height:22px; font-weight:600; " >
</asp:Button>
推荐答案
正如其他人所说这是你的问题。从你的按钮中删除它。
z-index:1 ;左:450像素;顶:350像素; position:absolute;
as the others said this is your problem. delete it from your button.
"z-index: 1; left:450px; top:350px; position: absolute;"
你应该做什么你应该首先删除z-index和边距或填充
尝试以%而不是像素来提供它/>
希望能工作!!
What you should do you should remove z-index first and margin or padding
Try to give it in % not in pixel
Hope That Will Work!!
这篇关于当gridview增长时,如何在gridview外部保持按钮控件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文