I get this error whereas I have checked all the code. Can someone points out where I am wrong?
--------------------------------------
Line 29: If e.CommandName = "New" Then
Line 30: Code.Direction = Data.ParameterDirection.Input
Line 31: Code.Value = (DirectCast(GridView1.Controls(0).Controls(0).FindControl("txtCode"), TextBox)).Text
Line 32:
Line 33: Name.Direction = Data.ParameterDirection.Input
-----------------------------------