Organizational Research By

Surprising Reserch Topic

getting uploadify working in c sharp


getting uploadify working in c sharp  using -'c#,asp.net,uploadify'

This seemed like it should be easy, but I have had trouble getting it to work. I don't know why it doesn't.  It is just showing the normal file input.

Is there any code / examples to get this working.  I am getting frustrated...

Thank you all.
    

asked Sep 16, 2015 by vimaldas2005
0 votes
17 views



Related Hot Questions

1 Answer

0 votes

This is a video tutorial on how to get started using C# and Webforms, should help you.

http://casonclagg.com/articles/6/video-tutorial-uploadify-asp-net-c-sharp.aspx

Can you post your code though so that I might be able to show you what you are doing wrong?

Here is the sample code I have for asp.net



   

Then you want to make a Handler (.ashx):

public class Upload : IHttpHandler, IRequiresSessionState
{

    public void ProcessRequest(HttpContext context)
    {
        try
        {
            HttpPostedFile file= context.Request.Files["Filedata"];

            int id = (Int32.Parse(context.Request["id"]));
            string foo = context.Request["foo"];
            file.SaveAs("C:\\" + id.ToString() + foo + file.FileName);

            context.Response.Write("1");
        }
        catch(Exception ex)
        {
            context.Response.Write("0");
        }
    }
}

Post your code and I will take a look at it. Sounds like you are pointing to a resource that doesn't exist. Maybe your 'uploader' property is not pointed to the proper resource or your jquery link is broken (or not there).

answered Sep 16, 2015 by vibhorsingh

...