当使用复选框将值从一个gridview读取到另一个gridview时...该值不应传递给该复选框值为false ...... [英] when read value from one gridview to another using checkbox...that value should not pass into that checkbox value come false......

查看:70
本文介绍了当使用复选框将值从一个gridview读取到另一个gridview时...该值不应传递给该复选框值为false ......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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);




               }







在此编码中复选框值应该为false ...请帮助....




in this coding the checkbox value should come false...pls help....

推荐答案

这篇关于当使用复选框将值从一个gridview读取到另一个gridview时...该值不应传递给该复选框值为false ......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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