Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This is a video tutorial on how to get started using C# and Webforms, should help you.</p> <p><a href="http://casonclagg.com/articles/6/video-tutorial-uploadify-asp-net-c-sharp.aspx" rel="noreferrer">http://casonclagg.com/articles/6/video-tutorial-uploadify-asp-net-c-sharp.aspx</a></p> <p>Can you post your code though so that I might be able to show you what you are doing wrong?</p> <p>Here is the sample code I have for asp.net</p> <pre><code>&lt;script type="text/javascript"&gt; // &lt;![CDATA[ var id = "55"; var theString = "asdf"; $(document).ready(function() { $('#fileInput').uploadify({ 'uploader': 'uploadify/uploadify.swf', 'script': 'Upload.ashx', 'scriptData': { 'id': id, 'foo': theString}, 'cancelImg': 'uploadify/cancel.png', 'auto': true, 'multi': true, 'fileDesc': 'Image Files', 'fileExt': '*.jpg;*.png;*.gif;*.bmp;*.jpeg', 'queueSizeLimit': 90, 'sizeLimit': 4000000, 'buttonText': 'Choose Images', 'folder': '/uploads', 'onAllComplete': function(event, queueID, fileObj, response, data) { } }); }); // ]]&gt;&lt;/script&gt; &lt;input id="fileInput" name="fileInput" type="file" /&gt; </code></pre> <p>Then you want to make a Handler (.ashx):</p> <pre><code>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"); } } } </code></pre> <p>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).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload