What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-12 11:19:15
redirecttoaction with parameters model
[HttpPost] public ActionResult FillStudent(Student student1) { TempData["student"]= new Student(); return RedirectToAction("GetStudent","Student"); } [HttpGet] public ActionResult GetStudent(Student passedStd) { ... Add solution -
C# 2021-11-05 07:12:12
razor: show editable list
// You need form tag in order for HttpPost. The trick is to either use for loop to generate // correct Ids, or create Partial View. // I like to use partial view, since it is a bit cleaner. // For example // ViewModel public class SampleViewModel { ... Add solution -
SQL 2021-10-22 06:11:10
how to store and retrieve image from sql database using c# in mvc
BY LOVE Note : - name attribute of the image file must match with the action parameter - Datatype of Image column in sql will be varbinary(max) 1- CSHTML page code @using (Html.BeginForm("UserProfile", "UserHome", FormMethod.Post... Add solution