

Copy Code HttpPostedFileBase hpf Request. With the LastIndexOf method of the PostedFile.FileName. It works fine.but i want to cast that object to HttpPostedFileBase type so i can pass to method whose parameter is of type HttpPostedFileBase.I try like below but it gives null value. Again, most likely the easiest thing to do is use the SubString method along like //- HttpPostedFile myFile varpath // string variable which holds the path int FileLen myFile. How do i convert it to HttpPostedFile type, so that i can perform various actions on the file.
System first, though, which may not be convenient in your situation. im developing an application in ASP.NET (C). Upload and save to folder