Hello...
I am working in asp.net c# i want to browse and select any file from folder like i want to check .sql file available or not through c#?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sibeesh VenuRank #27 · 42.9K reputationPosted Nov 24, 2014, 7:57 PM EST
http://www.c-sharpcorner.com/UploadFile/scottlysle/UploadwithCSharpWS05032007121259PM/UploadwithCSharpWS.aspx
http://asp.net-tutorials.com/controls/file-upload-control/
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Nov 24, 2014, 8:01 PM EST
Hi Davin Martyn,
Read these links, it will help you
http://www.codeproject.com/Articles/667306/Upload-an-Image-and-an-Audio-file-using-Csharp
http://www.aspnettutorials.com/tutorials/controls/use-fileupload-ctrl-asp4-cs/
Abhay ShankerRank #375 · 6.7K reputationPosted Nov 24, 2014, 11:06 PM EST
string fileExtention = System.IO.Path.GetExtension(FileUpload1.FileName);
if (fileExtention == ".sql") {}