Difference in casting in the following 2 methods
- by Shrewd Demon
hi,
can somebody please tell me what is the difference between the following two statements, because both of them give me the same results. Also i want to know which is better.
Label lblSome = e.Item.FindControl("lblMyLable") as Label;
&&
Label lblSome = (Label)e.Item.FindControl("lblMyLable");
thank you so much.