Can we reach 1000 likes on this video. Share this video among your friends and Give your suggestions on which topic I should make videos. Thanks
@saktiprasadswain65465 жыл бұрын
Thanks bro....
@saktiprasadswain65465 жыл бұрын
Ur code is so simple..Avg coder can understand
@gregnordeng91966 жыл бұрын
You are a great teacher. Very simple approach and easy to understand. Thank you for your videos!
@jericmangao51104 жыл бұрын
Nice video . It was very helpful to me. Thank you so much for this.
@mastuero3 жыл бұрын
Great!!!
@face15174 жыл бұрын
I've been search edit using modal with id for 2 days but some other tutorials is hassle because them using 2 edit actionresult 1 for find id and 1 for edit record which is alot. accidentally i found this. this is what i want simple code but he get what i want. Thank you sir for this. anyway sir how to pass data from grind to textbox in modal? Thank you
@nelsonmohamie64384 жыл бұрын
Thank you sir....it helped alot
@shafeekcherpu14765 жыл бұрын
Awesome tutorial... thanks for the video
@aapkanigam5 жыл бұрын
Thanks keep learning and sharing
@bilalyousuf68147 жыл бұрын
Thanku sir for great explanation ,let me know one thing if only one record than why you used foreach and List Employee (in controller)
@aapkanigam7 жыл бұрын
+Bilal Yousuf u can use them for list or single record ..
@jaxparrow17945 жыл бұрын
Thank you so much, Ashish! :-D Really helped!
@ceciliazhou11826 жыл бұрын
Thank you for your video Ashish. I am actually have a problem when using ViewBag. The data is in the ViewBag in controller, while when i want to access that from the partial view, it failed all the time. in controller: ViewBag.field = formfield.field; In partial view: @ViewBag.field What is the problem? Would you mind helping me a bit about that?
@duncanmcdonald52506 жыл бұрын
Was there a reason you based you based the "ShowEmployee(int EmployeeId)" action in the controller on the "Index()" action and not, say, the "EmployeeDetail(int EmployeeID)" action created in Tut 8 and 9? You know that you should only get back ONE employee, so why assign it to a list? "EmployeeDetail(...)" also means you just create and pass a simple "EmployeeViewModel" to the new partial view, rather than using the ViewBag. The code I ended up with is... In "TestCotroller.cs": public ActionResult ShowEmployee(int EmployeeID) { MVCTutorialEntities db = new MVCTutorialEntities(); Employee employee = db.Employees.SingleOrDefault(x => x.IsDeleted == false && x.EmployeeId == EmployeeID); //Create a ViewModel for this employee EmployeeViewModel employeeVM = new EmployeeViewModel { Name = employee.Name, Address = employee.Address, DepartmentName = employee.Department.DepartmentName }; return PartialView("EmployeePartial", employeeVM); } Notice I pass the EmployeeViewModel object as an argument in the PartialView call. The code for "EmployeePartial" is shown below. In "EmployeePartial.cshtml": @model MVCTutorial.Models.EmployeeViewModel @if (Model != null) { Employee Name @Model.Name Address @Model.Address Department @Model.DepartmentName } The only adaption I would still like to make would be in the "ShowEmployee(...)" action if(employeeVM != null) { return PartialView("EmployeePartial", employeeVM); } else { return some meaningful view/raw html to put into the Modal section }
@navzme6 жыл бұрын
Thanks for awesome video
@rajeshroshan046 жыл бұрын
Nice video.
@narendarsingh46725 жыл бұрын
Sir,I request to u upload tutorial of how to use store-procedure instead of linq query
@anandkrishna71906 жыл бұрын
I have a small question as I want to send data from partial view to main view in mvc 5 could you please help on this
@kaushikbhadani42277 жыл бұрын
Fantastic,. Can you upload ur tutorial with Dependency Injection
@narendarsingh46726 жыл бұрын
Great
@aliraza66-h1b8 жыл бұрын
great..please make on email sending and opencart
@inancakcan68987 жыл бұрын
Great! Thank you very much
@aapkanigam7 жыл бұрын
+Inanc Akcan keep learning and sharing
@daviddonadze2216 жыл бұрын
Thank you so much
@anbuanbu65916 жыл бұрын
Hi bro, How to restrict access the jquery ajax method from browser console window... The problem is: everyone can just go to the console and make a loop around it and make that request a thousand time. how can i deal with this security problem.