Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Violet Nelson   on Jun 06 In Asp.net Category.

  
Question Answered By: Isaac Williams   on Jun 06

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...

Share: