Sunday, March 18, 2012

Nullable int in asp.net

nullable int with ternory operator in asp.net 

iCompanyId = Session["PCompanyId"].ToString()!= "null" ? int.Parse(Session["PCompanyId"].ToString()) : (int?)null;

No comments:

Post a Comment

Comments

Protected by Copyscape Plagiarism Software