Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET MVC3
I am new to mvc3 razor. i created a partial aspx page in the razor view engine based mvc3 project. In that partial page i use a file uploader. Now i want to transfer that uploaded file in to database via action result of controller.
 

please can any one help me......
Thanking you with regards.....
Posted 14-May-13 21:59pm
Edited 14-May-13 23:04pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

1) razor and aspx mixed - why???
2) it does not matter if you render that file input from partial or not partial view, the POST is finally sent to an action.
 
Start here: http://www.bluelemoncode.com/post/2011/11/16/Upload-and-Download-files-in-database-using-MVC-Linq-to-SQL.aspx[^]
  Permalink  
Comments
Anil.Adari at 15-May-13 4:25am
   
thanks for your response but actually i am using the telerik file uploader in the my project. it is not working in the razor view correctly so i am using the partial view as the aspx page and i want to take take those files from that partial page.
Zoltán Zörgő at 15-May-13 4:37am
   
Makes no difference. The post is routed to an action either way. Please read the link I have given.
Anil.Adari at 15-May-13 4:58am
   
Thank you very much it is working
Zoltán Zörgő at 15-May-13 5:10am
   
You are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 BillWoodruff 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 15 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100