Upload file

  1. #1

    Upload file

    Dear All ,
    How can i create new Ext.net upload File component in java Script

    -My problem i want to on button click create new Ext upload file

    -I don't want to create it on server side i want to create it on Clint side

    So Please if u have any help with this problem .

    as example in javaScript
    function uploadFile()
    {
    var Uploadfile=new Ext.net.Uploadfile()
    
    }
  2. #2
    Hi,

    I can suggest the following technique:

    1. Create a markup to get on a page what you need.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:FileUploadField runat="server" />
        </form>
    </body>
    </html>
    2. Then see Page Source.

    You will see something like this:
    new Ext.form.FileUploadField({
        id : "ctl04",
        renderTo : "ctl04_Container"
    });

Similar Threads

  1. [CLOSED] multiple file upload and file size at client side
    By mirwais in forum 1.x Legacy Premium Help
    Replies: 24
    Last Post: Dec 15, 2014, 5:44 AM
  2. Upload file in one click
    By vishal.jhala@gmail.com in forum 1.x Help
    Replies: 7
    Last Post: Aug 11, 2011, 5:55 PM
  3. Replies: 1
    Last Post: Jun 23, 2011, 9:37 AM
  4. [CLOSED] file upload - file name is empty
    By stoque in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 11, 2011, 8:06 PM
  5. File Upload Problem
    By onurbozkurt in forum 1.x Help
    Replies: 3
    Last Post: Feb 16, 2009, 6:47 PM

Posting Permissions