Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi, all.

I saved the value,path to my upload file location to Application bag to use this value globally.

But, I don't know how to retrieve from WebForm.

object val = Application["UploadDir"]; doesn't work!

how can I retrieve it?

in global.asax
protected void Application_Start(Object sender, EventArgs e)
{
Application["UploadDir"] = Server.MapPath(".\\") + "uploadFiles";
}

Sun Certified Web component Developer,

Microsoft Certified Solution Developer .NET,

Software Engineer

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...