how to set mypath when im downloading data from modalpopup ...pls help me out....
when i set mypath it is showing error like some part of the path is missing idk what to do.......

how to set mypath when im downloading data from modalpopup ...pls help me out....
when i set mypath it is showing error like some part of the path is missing idk what to do.......

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
Naimish MakwanaRank #324 · 7.7K reputationPosted Mar 10, 2023, 4:48 AM EST
Hello Tarun,
You need to provid full path with filename in value to filepath variable.
Example :
//get the path where you want to save the file string myPath = Server.MapPath("~/DownloadedFiles/"); //set the full file path including the file name string filePath = myPath + fileName; //Provide filenameThanks
Naimish Makwana