I want to also allow xls as the file in the below if condition block. when i am using or xls is not working.
string item = txtFile.Text;
if (!item.ToUpper().EndsWith(".XLSX"))
{
MessageBox.Show("Please select any xlsx file");
return;
}
Thank you very much for the helpful info
Go to the complete details ...