标题:如何取得这个textbox的text值
取消只看楼主
kiska3088915
Rank: 2
等 级:论坛游民
帖 子:72
专家分:12
注 册:2009-11-7
结帖率:86.96%
已结贴  问题点数:14 回复次数:1 
如何取得这个textbox的text值

如图,想请教一下大家,我有一个作业,要求我们做一个简单的购物网站,在商品列表这,我用了ACCESSDATASOURCE,然后用REPEATER弄了个表格,并设计了一个直接添加到购物车的按钮,其他的没问题了,就是不知道怎么获取amount列的textbox里的值,希望大家赐教该怎么做,我是用VB写网页的
搜索更多相关主题的帖子: textbox 
2010-11-18 23:30
kiska3088915
Rank: 2
等 级:论坛游民
帖 子:72
专家分:12
注 册:2009-11-7
得分:0 
对了,忘了附上代码了,补上补上   

<asp:Repeater ID="Repeater1" runat="server" DataSourceID="AccessDataSource1">
    <HeaderTemplate>
        <table border="1" cellpadding="0" cellspacing="0">
           <tr>
              <td colspan="6" align="center">   Product List
              </td>
           </tr>
           <tr>
              <td>
                 product id
              </td>
              <td>
                 product name
              </td>
              <td>
                 price
              </td>
              <td>
                 catalogue
              </td>
              <td>
                 amount
              </td>
              <td>
                 manipulation
              </td>
           </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
           <td>
              <%#Eval("productid")%>
           </td>
           <td>
              <%#Eval("product_name")%>
           </td>
           <td>
              <%#Eval("price")%>
           </td>
           <td>
              <%#Eval("catalogueid")%>
           </td>
           <td>
               <asp:TextBox ID="TextBoxamount" runat="server" Text="1" Width=40 MaxLength=6></asp:TextBox>
           </td>
           <td>
               <asp:Button ID="Buttondetail" runat="server" Text="detail" CommandName="detail" CommandArgument='<%#Eval("productid") %>'/>
               <asp:Button ID="Buttonputincart" runat="server" Text="put in cart" CommandName="put in cart" CommandArgument='<%#Eval("productid") %>'/>
           </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>   
    </FooterTemplate>
    </asp:Repeater>
2010-11-18 23:32



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-326203-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.232967 second(s), 9 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved