LP MER
TextBox txtFirst = e.Row.FindControl("txtFirst") as TextBox; TextBox txtSecond = e.Row.FindControl("txtSec") as TextBox; if (txtFirst != null && txtSecond != null) txtFirst.Attributes.Add("onkeyup", "javascript:txt_OnKeyDown( ' " + txtFirst.ClientID + " ',' " + txtSecond.ClientID + " ')");
<script type="text/javascript"> function txt_OnKeyDown(txtFirst,txtSecond) { document.getElementById(txtSecond).value = document.getElementById(txtFirst).value; } </script>
Kind Regards, Jay
Login to post response