为什么gridview 的OnRowCommand不触发
<ItemTemplate><asp:LinkButtonID="FileName1"runat="server"Text='111'BorderWidth="0px"B...
<ItemTemplate>
<asp:LinkButton ID="FileName1" runat="server" Text='111' BorderWidth="0px" BorderStyle="None"
BackColor="Transparent" CommandName="HistoryExcel1" CommandArgument='aa' ></asp:LinkButton>
</ItemTemplate>。。。
<asp:GridView ID="gvHistory" runat="server" EnableViewState="False" Width="98%" AutoGenerateColumns="False" OnRowCommand="gvHistory_RowCommand">...
protected void gvHistory_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "HistoryExcel")
{
string ExcelPath = e.CommandArgument.ToString();
}
BorderWidth="0px" GridLines="None" OnRowDataBound="gvHistory_RowDataBound" OnRowCommand="gvHistory_RowCommand"> 展开
<asp:LinkButton ID="FileName1" runat="server" Text='111' BorderWidth="0px" BorderStyle="None"
BackColor="Transparent" CommandName="HistoryExcel1" CommandArgument='aa' ></asp:LinkButton>
</ItemTemplate>。。。
<asp:GridView ID="gvHistory" runat="server" EnableViewState="False" Width="98%" AutoGenerateColumns="False" OnRowCommand="gvHistory_RowCommand">...
protected void gvHistory_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "HistoryExcel")
{
string ExcelPath = e.CommandArgument.ToString();
}
BorderWidth="0px" GridLines="None" OnRowDataBound="gvHistory_RowDataBound" OnRowCommand="gvHistory_RowCommand"> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询