开发者

File upload using jquery inside a partial view

开发者 https://www.devze.com 2023-01-24 12:23 出处:网络
I have a partial view FileUpload which contains a file control. <ul> <li> 开发者_高级运维<label>

I have a partial view FileUpload which contains a file control.

<ul>
    <li>
        开发者_高级运维<label>
            <span>*</span>Select the file:
        </label>
        <input type="file" id="FileBlob" name="FileBlob" />
        <input type="submit" value="Save" />
        <input type="button" value="Cancel" onclick="window.location.href='/'" />
    </li>
</ul>

This partial view is added in view Document which have few textboxes to get detials of document. I need to upload the files and add file details to database using jquery also need to retain the values in the textboxes (which is to be saved in another "Save" click) after the upload function is called


There is already a famous jQuery plugin that you can use to upload files. Check out:

  • jQuery Uploadify Plugin
0

精彩评论

暂无评论...
验证码 换一张
取 消