Click here to Skip to main content
16,020,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i want to used a code for image uplaoding as

string ext=path.getextension(fileupload1.filename)

in this getextension() is not comming in screen

and i also used system.IO namespace
Posted

enter code like below. Please note that C# is case sensitive
C#
string ext = System.IO.Path.GetExtension(fileupload1.filename);
 
Share this answer
 
Please check for any syntax error in your code may be because of that intelli-sense not working in visual studio
 
Share this answer
 
Comments
shakeer mp 12-May-13 11:29am    
I think no syntax error .......because we are using getextension() only in that command
appoos 13-May-13 5:00am    
enter code like below. Please note that C# is case sensitive
string ext = System.IO.Path.GetExtension(fileupload1.filename);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900