how do I make the folder name dynamic?

taffmeistertaffmeister wrexham
edited May 2015 in C#

I am new to and c#, I am still in the classic asp mindset lol!

I have an upload on my site using the code:


void Button1_Click(object Source, EventArgs e){ if (File1.Value == ""){ Span1.InnerHtml = "Error: you must enter a file name"; return; } if (File1.PostedFile != null){ try{ File1.PostedFile.SaveAs(Server.MapPath("customers/2/j1\\")+File1.Value); Span1.InnerHtml = HttpContext.Current.Session["fpath"] + File1.Value; } catch (Exception exc){ Span1.InnerHtml = "Error saving file" + File1.Value + "" + exc.ToString(); } } }


this sits in an iframe within a classic asp page.
Can anyone tell me how to pass a dynamic folder name currently stored in a variable to the iframe so that files can be uploaded to various customer folders.

thanks in advance

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!