Author: bbc_sh | Posted on: 9/4/2008 7:06:55 AM | Views : 267

 I write this code for showing totalprice in a gridview footer.but i see this error.when this page loaded user input his quantity on textboxes and press a  button,after that can see the total price in gridview footer.here is my click event code:

------------------------------------------------------------------------------------------------------------------
 
protected void Button1_Click(object sender, EventArgs e)
{
if (GridView1.Rows.Count > 0)
{
for (int i = 0; i <= GridView1.Rows.Count - 1; i++)
{
TextBox qty = (TextBox)GridView1.Rows[i].FindControl("textbox2");
Label pr = (Label)GridView1.Rows[i].FindControl("label3");
Go to the complete details ...