i have a gridview in which i have two text boxes and one button ,when user click on
button a new row with two textboxes is added, i want to use text change event in 1st
textbox, and at the end pass a value to 2nd text box,problem is that ,value does not show up in the textbox
Hide Copy Code
Code
protected void txtCode_TextChanged(object sender, EventArgs e)Code
{ GridViewRow currentRow =(GridViewRow)((TextBox)sender).Parent.Parent;Code
TextBox txt = (TextBox)currentRow.FindControl("txtCode");Code
TextBox txtfine = (TextBox)currentRow.FindControl("txtFine");Code
Int32 count =Convert.ToInt32( txt.Text);Code
var chkradio = rblQualification.SelectedValue;Code
byte chkRadio = SafeConvert.ToByte(chkradio);Code
var vehiclecategory = _service.GetAllVehicleCategory().Where(x => x.ID == chkRadio).FirstOrDefault();Code
var vehicletype = vehiclecategory.VehicleType_Id;Code
var pntytype = _service.GetAllVehiclePenaltyType().Where(x => x.ID == SafeConvert.ToByte(count)).Count();Code
var plntyfee = _service.GetAllVehiclePenaltiesFee().Where(x => x.VehicleTypeID == vehicletype && x.VehiclePenaltyTypeID == vehicletype).FirstOrDefault(); txtfine.Text = plntyfee.Fee.ToString(); }

Manas MohapatraRank #182 · 13.2K reputationPosted Sep 28, 2015, 1:15 AM EDT
Sajid HussainRank #3,026 · 476 reputationPosted Sep 28, 2015, 1:30 AM EDT
Sajid HussainRank #3,026 · 476 reputationPosted Sep 28, 2015, 1:30 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Sep 28, 2015, 1:34 AM EDT
Sajid HussainRank #3,026 · 476 reputationPosted Sep 28, 2015, 2:02 AM EDT
Sajid HussainRank #3,026 · 476 reputationPosted Sep 28, 2015, 2:15 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Sep 28, 2015, 2:35 AM EDT