首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

在DataList中添加按钮,但是在后台调用不到前台按钮的ID,求大神请问!

2012-09-13 
在DataList中添加按钮,但是在后台调用不到前台按钮的ID,求大神请教!~0....0坐等大神[解决办法]前台HTML co

在DataList中添加按钮,但是在后台调用不到前台按钮的ID,求大神请教!~
0....0 坐 等大神

[解决办法]
前台

HTML code
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title>    <link href="../Styles/adminCss.css" rel="stylesheet" type="text/css" /></head><body>    <form id="form1" runat="server">    <div>        <asp:DataList ID="ddlImport" runat="server">            <ItemTemplate>                <table class="gridview">                    <tr>                        <td>                            <asp:Label ID="lbladcode" runat="server" Text='<%#Eval("AD_CODE") %>' Width="100px"></asp:Label>                        </td>                        <td>                            <asp:Label ID="lbldesc" runat="server" Text='<%#Eval("DESC3")%>' Width="100px"></asp:Label>                        </td>                        <td>                            <asp:Button ID="btnTest" runat="server" Text="TEST" />                        </td>                    </tr>                </table>            </ItemTemplate>        </asp:DataList>    </div>    </form></body></html> 

热点排行