读取从一个gridview到另一个gridview的值但复选框值不能通过编码... [英] read value from one gridview to another gridview but checkbox value cant pass in coding...

查看:80
本文介绍了读取从一个gridview到另一个gridview的值但复选框值不能通过编码...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

protected void btnget_Click(object sender, EventArgs e)
        {
            foreach (GridViewRow row in GridView1.Rows)
            {
                CheckBox ChkData = (CheckBox)row.FindControl("chkSelect");
                if (ChkData.Checked == true)
                {
                    string firstname = Convert.ToString(((Label)row.FindControl("labelfirstname")).Text);
                    string lastname = Convert.ToString(((Label)row.FindControl("labellastname")).Text);
                    string email = Convert.ToString(((Label)row.FindControl("email")).Text);
                    string reemail = Convert.ToString(((Label)row.FindControl("reemail")).Text);
                    string newpassword = Convert.ToString(((Label)row.FindControl("newpassword")).Text);
                    string birthday = Convert.ToString(((Label)row.FindControl("birthday")).Text);
                    string gender = Convert.ToString(((Label)row.FindControl("gender")).Text);
                }

推荐答案

这篇关于读取从一个gridview到另一个gridview的值但复选框值不能通过编码...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆