make ajax uploader as htmlhelper

I use mvc4 and i have an action that can handle upload file our image in jquery ajax. i use this action on page with this code

@Html.Action("imagesender", "admin", new { @name = "image" })

so some javascript,css and html code will added to my page and after uploading return file name in hidden filed so i can save it into my database.

i want to make custom html helper that make it work easier but i can't include javascript and css code. Please give some solution thanks

Answers:

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.