文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>ASP.NET获取<EmptyDataTemplate></EmptyDataTemplate>模板中的textBox控件值

ASP.NET获取<EmptyDataTemplate></EmptyDataTemplate>模板中的textBox控件值

时间:2011-03-28  来源:悟生慧

/// <summary>
    /// GridView事件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void gvFieldValue_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName.Equals("Add"))
        {
            GridViewRow row = (GridViewRow)((e.CommandSource as LinkButton).NamingContainer);//获取值
            string txtName = (row.FindControl("txtName") as TextBox).Text;
            string txtCode = (row.FindControl("txtCode") as TextBox).Text;

         }

     }

相关阅读 更多 +
排行榜 更多 +
白银之城手游官服下载

白银之城手游官服下载

角色扮演 下载
像素赛车手魔改版下载

像素赛车手魔改版下载

赛车竞速 下载
全民摆摊免广告版下载

全民摆摊免广告版下载

模拟经营 下载