protected void btnSubmit_Click(object sender, EventArgs e)
{
foreach (GridViewRow gridRow in GridView1.Rows)
{
TextBox serviceFee = (TextBox)gridRow.FindControl("txtServiceFee");
TextBox typingFee = (TextBox)gridRow.FindControl("txtTypingFee");
TextBox govermentFee = (TextBox)gridRow.FindControl("txtGovermentFee");
int customerTypeId = Convert.ToInt32(lbl.Text);
string sfee = Convert.ToString(serviceFee.Text);
Response.Write("sFee:"+sfee);
}
}
}
}
Dhirendra MisraPosted Dec 27, 2013, 2:38 AM
Your .cs code seems to be fine, can you check on .aspx code if textbox is having property runat="server" at .aspx code with gridview markup?
Thanks
Abhay ShankerPosted Dec 24, 2013, 9:41 AM