Session["intvalue"] = 2; int i = int.Parse(Session["intvalue"].ToString());
int output = 0; if(Session["intvalue"] !=null) { if(Session["intvalue"] != "") { int.tryParse(Session["intvalue"].ToString().Trim(), out output); } } //now output variable contains your integer value.
fn(output)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)