Saturday, March 22, 2008

Convert String To Integer

// Convert String to Int
public static int StringToInt(string str)
{
    return Int32.Parse(str);
}

 

int employeeID = Convert.ToInt32(GridView1.DataKeys[row.RowIndex].Value);

No comments:

Post a Comment