Hi All,
   I am, facing one problem from last 3 days but i didn't get solution
of this so please anybody can help me.
Actually in my application user just fill all the details and attached
his Image and then all the details and his image goes to his email
id..iso for this i made a image save function which is below:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
public void imgsave()
    {
        upload_image = FileUpload1.PostedFile.FileName;
        string strBaseLocation = Server.MapPath("~/userimage/");
        if (FileUpload1.HasFile)
        {
            FileUpload1.SaveAs(strBaseLocation +
FileUpload1.FileName);
        }

        else
        {
            Page.ClientScript.RegisterStartupScript(typeof(Page),
"alert", "<script language=JAVASCRIPT> alert('Try Again');</script>");
        }
    }
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Here a Folder userimage put into our Root of application this is
working fine in my localHost.But when i upload this to my server then
its not work i mean this userimage didn't find by this application..

So please tell me where i am wrong....Pls my dear seniors help me.
I'll wait for reply.

Reply via email to