wrote on Tue, 2 Dec 2008 22:41:14 -0800 (PST):
> dear sir/madam
> please tell me how to save image or any file in back folder in asp
> i am doing like this but it is not working
> path = Server.Mappath("../NewsImage")&"/"&Names
> fields("imageLarge").value.SaveAS path
> NewsImage folder is before controlpanel and the page which contain this
> code is in controlpanel
> but it is giving error in server.mappath .. is not allowed
> Thanks in advance
Either don't use .. in the path name, or change your IIS configuration to
allow .. in path names (parent paths).
If for instance NewsImage is straight off the root, use
Server.MapPath("/NewsImage") instead
otherwise use the appropriate relative path to the root of the site.
--
Dan