For type Casting apply the following steps
VB.NET
dim aprtxt as string
aprtxt= CType(e.Item.FindControl('txtapr'), TextBox)
C#
string aprtxt;
aprtxt = (TextBox) e.Item.FindControl['txtapr'];
For type Casting apply the following steps
VB.NET
dim aprtxt as string
aprtxt= CType(e.Item.FindControl('txtapr'), TextBox)
C#
string aprtxt;
aprtxt = (TextBox) e.Item.FindControl['txtapr'];
Share with