Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.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# 如何将滚动条添加到“我的代码”的列表视图?_C#_Html_Css_Asp.net_Web Applications - Fatal编程技术网

C# 如何将滚动条添加到“我的代码”的列表视图?

C# 如何将滚动条添加到“我的代码”的列表视图?,c#,html,css,asp.net,web-applications,C#,Html,Css,Asp.net,Web Applications,在上面我已经添加了我的列表视图,我是web应用程序的初学者,所以请帮我找出答案 <td class="auto-style11"> <asp:HiddenField ID="hfSelectedRecord" runat="server" /> <table id="tblCurrencyName" frame="border" style="border: thin double #990033; margin-left: 117px;">

在上面我已经添加了我的列表视图,我是web应用程序的初学者,所以请帮我找出答案

 <td class="auto-style11">
   <asp:HiddenField ID="hfSelectedRecord" runat="server" />
   <table id="tblCurrencyName" frame="border"  style="border: thin double #990033; margin-left: 117px;">
         <tr class="altRow">
            <td class="auto-style31">
                <b>Sno</b>
            </td>
            <td class="auto-style30">
                <b>Currency Name</b>
            </td>
            <td class="auto-style30"><b>Action</b></td>
         </tr>
         <asp:ListView ID="lstViewCurrencyName" OnItemCommand="lstViewCurrencyName_ItemCommand" runat="server" >
         <ItemTemplate>
            <tr class="<%#(Container.DataItemIndex+1)%2==0?" altrow":"normalrow"%>">
                 <td>
                      <%#Container.DataItemIndex+1%>
                 </td>
                 <td>
                      <%#Eval("CURRENCY_NAME") %>
                 </td>

斯诺
货币名称
行动

如果设置控件的高度,则您的
列表视图应显示垂直滚动条

如果您需要两个滚动条,请使用
DIV
标记将
ListView
包装如下(注意DIV标记的
style
和height属性)。在这种情况下,不要为
列表视图设置
高度

<div style="height:350px; overflow:scroll">
<asp:ListView ID="lstViewCurrencyName" OnItemCommand="lstViewCurrencyName_ItemCommand" runat="server" >


...

</div>

...
希望这有帮助