Joma Rajab

Joma Rajab

  • NA
  • 110
  • 52k

convert string to int

Jul 28 2016 11:05 AM
how to check the id it is string to convert it to int or if it is int to pass it 
 
  1. int id = 0;  
  2. int.TryParse(Request.QueryString["id"], out id);  
 I need to put condition  for this above 
 
please help  

Answers (1)