Wrong array declaration. Actually I haven't seen any declaration for your
strArray. Declare as this:
//use single quote for char - you don't have to use Convert class...
string[] strArray = fileName.Split('.');
...
Response.Write(strArray[0]);
This SHOULD work. I used it a hundred times...