I got problem converting this car id key from a label. Here
is the error I am receiving
Unable to cast object of type 'System.Web.UI.WebControls.HiddenField'
to type 'System.Web.UI.WebControls.Label'.
Do you have any suggestion to avoid this error ?
Thanks
Label myCarId = (Label)item.FindControl("carId");
iCarId = Convert.ToInt32(myCarId);
Session["carId"] = iCarId;
Manoj Bhatt
23-Dec-2014It should be: