Dear *.*
I am a newbie using MVC
Can anyone share me a code that can save 2 image in a single table.
Model (EmpName)
(IDNo Int,EmpName String,Picture1 String,Picture2 String)
I am using MVC C#
Thanks a lot...
Have a nice day
thanks a lot sir..
but my project was to save 2 images with different image on each field
@{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>Index</title> </head> <body> <form method="post" enctype="multipart/form-data" asp-controller="Home" asp-action="Index"> <span>Select File:</span> <input type="file" name="image1" /> <input type="file" name="image2" /> <input type="submit" value="Upload" /> <br/> <span style="color:green">@Html.Raw(ViewBag.Message)</span> </form> </body> </html>
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.