Click here to Skip to main content
15,741,310 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,
I want to save the image in website folder or server side and path to database for retrieval the image using url. When i click the save btn i going to pass some user details and image path to database using ajax json calling web method i could not able to use server.mappath within page method for store the image in specific folder. So is that any possible to save the image using jquery and get the url to pass using json and web method it's urgent ..
Updated 6-Jul-14 21:24pm

Share this answer
you can use below method.

System.Web.Hosting.HostingEnvironment.MapPath("path of folder where you want to save image");
Share this answer

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