Part 20- Add Edit Record using Partial View , JQuery and bootstrap popup(Modal) in ASP.NET MVC

  Рет қаралды 85,313

Technotips Ashish

Technotips Ashish

Күн бұрын

Пікірлер: 67
@robertga12
@robertga12 6 жыл бұрын
LOL the ankward silense while closing the avast tab made my day, great video thanks
@aapkanigam
@aapkanigam 6 жыл бұрын
Thank You, keep learning and teaching ☺
@anggitahananprimasanti2464
@anggitahananprimasanti2464 3 жыл бұрын
thank you for the tutorial
@tharindumindada4836
@tharindumindada4836 5 жыл бұрын
i was struggling for a week to do this Thanks a Lot Bro.....
@aapkanigam
@aapkanigam 5 жыл бұрын
Thanks keep learning and sharing
@quadritalha6393
@quadritalha6393 5 жыл бұрын
Thanx for explaining this concept in such a simple way.
@nhatminh6339
@nhatminh6339 6 жыл бұрын
Hope you make more video about .NET Core!! Thank you very much !!
@kirankumari-nz8lr
@kirankumari-nz8lr 8 жыл бұрын
thanks for making such videos .Its helped me a lot ..keep it up
@topcat5992
@topcat5992 6 жыл бұрын
myform.serialize is always sending a null model to the controller. I have tried Json.Encode(my model) and still I am unable to get an updated model. Any thoughts?
@suhaspatil5054
@suhaspatil5054 4 жыл бұрын
hello please share crud operation in asp.net mvc
@jacobcrosby101
@jacobcrosby101 6 жыл бұрын
Thank you for your help.
@serhattural3168
@serhattural3168 7 жыл бұрын
After clicking save button page is refreshing. How can we prevent refresh?
@navzme
@navzme 6 жыл бұрын
Thanks for awesome video
@augustinomateso5568
@augustinomateso5568 7 жыл бұрын
Thank you for a good tutorial, I'm able to follow your instructions but it seems validation is not working on modal pop up. Is there a way to use partial view on modal popup and still be able to use validation from the model properties...!?
@aapkanigam
@aapkanigam 7 жыл бұрын
+Augustino Mateso Ya validation will not work as you are submitting form using JQuery. To apply validation use yourform.valid () method which will return true if form is validated .Then you can show some message just below textbox if form not validated.Please dont forget to include Validate.min file reference and jquery unrobustive file .The second option is to check if each textbox is empty and undefined then show message .
@augustinomateso5568
@augustinomateso5568 7 жыл бұрын
Thank you @Techno Tips, second option is okay, I will have a look on first option also to see its flexibility. Also I have another question, during post of a modal form by AjAX, the url part works okay if I'm running directly from visual studio. But if I deploy an application on my local IIS the url part seems not to be correctly called. I have tried to use @Url.action("action", "controller") but no success. Do you have any suggestion on this...!? Thank you again
@kaushikbhadani4227
@kaushikbhadani4227 7 жыл бұрын
excellent!!
@vinodcobraz
@vinodcobraz 7 жыл бұрын
Thanks for the wonderful explanation. In my code the update function is working the first time and then when I try to update another record the modal does not proceeds with update. What could be causing the error?
@ManuelRBercian
@ManuelRBercian 7 жыл бұрын
Great, congratulations!! and thanks
@aapkanigam
@aapkanigam 7 жыл бұрын
+Manuel Ramirez thank..keep learning and sharing
@aaronaaronaaron5922
@aaronaaronaaron5922 7 жыл бұрын
very, very Thanks!!!
@bilalyousuf6814
@bilalyousuf6814 7 жыл бұрын
Thanku sir :) one thing to ask you ,how can we get site name also to be edited (when we are updating)
@aniljain50
@aniljain50 7 жыл бұрын
Thanks for the wonderful tutorial. In the partialvew2 there is no need to send serialized data if we use Begin form statement. Also after I add a new record how should I stay in the Partialview2 to add another record without the partial view getting closed.
@aapkanigam
@aapkanigam 7 жыл бұрын
+Anil Jain thnks ..keep learning and sharing.. if you want to add another record then dont close your modal ..also after inserting data, clear the content of your textbox and write another value .But in this case you need to append inserted data to list ..instead of reloading page to show updated list .
@aniljain50
@aniljain50 7 жыл бұрын
When I click on the submit button after executing the submit procedure the modal disappears!!
@aapkanigam
@aapkanigam 7 жыл бұрын
+Anil Jain Ya this is because .. there may be code written to close current modal . Like this $("myModal").modal ("hide"); .. You have to remove this from ajax response.
@aniljain50
@aniljain50 7 жыл бұрын
No Ashish Tiwary.. there's no code to hide. I'll figure out a way. But your response is too quick!! Keep it up!!
@aapkanigam
@aapkanigam 7 жыл бұрын
+Anil Jain thanks ..dear its written in code ..just before window.location.href in ajax call.. are you watching part 20? ..please check at 21:51 min in video.
@Yoftahie1
@Yoftahie1 7 жыл бұрын
Thank you
@aapkanigam
@aapkanigam 7 жыл бұрын
+Yoftahie Suleiman your welcome . Please share this if you find this useful.
@MainUddin-rd5ck
@MainUddin-rd5ck 7 жыл бұрын
sir, thank you form nice tutorial, it is working fine in local machine, but not working after host....
@narendarsingh4672
@narendarsingh4672 6 жыл бұрын
very nice sir
@aapkanigam
@aapkanigam 6 жыл бұрын
Thanks .. keep learning and sharing 🤗
@narendarsingh4672
@narendarsingh4672 6 жыл бұрын
@@aapkanigam you are great sir,very nice your way of teaching style.thanks a lot.
@zhandossaukmanov3229
@zhandossaukmanov3229 7 жыл бұрын
Where I can download full source code?
@vinayakjambhale5985
@vinayakjambhale5985 6 жыл бұрын
Thanks Ashish Sir, Its Working Perfectly...My Complete Form is Edited & saved in Database..but i didnt get Image URL in ajax to post in my controller..How can i Edit Image Using this Part20?
@aapkanigam
@aapkanigam 6 жыл бұрын
watch part 32, 33, 34 for image upload
@satyajitbhapkar7273
@satyajitbhapkar7273 7 жыл бұрын
Thanks Sir
@AlviRacingClub
@AlviRacingClub 7 жыл бұрын
Hi Ashish, first of all, great videos, you are teaching me how to program, so keep it going! I´m having a problem when i try to serialize the modified model from the form in the partial view. It returns var varName = "". Because of this, the model that enters the post controller method has only nulls. Do you know what might be my problem?
@aapkanigam
@aapkanigam 7 жыл бұрын
+Alvi Roces Cortez Thanks. Have you tried the code that I have shared.Please find link from the description. There might be possibility of getting error in jquery. Try to debugg that and tell me what error are you getting.
@AlviRacingClub
@AlviRacingClub 7 жыл бұрын
The jquery returns no error, it just gets the $("#myForm").serialize() equals to null("") and then continue running
@AlviRacingClub
@AlviRacingClub 7 жыл бұрын
Oh my bad, it gives: POST localhost:49764/Test/Index 500 (Internal Server Error) VM108:23 and when i expand it, send @ VM108:23 ajax @ VM108:23 (anonymous) @ VM110:13 dispatch @ VM108:22 v.handle @ VM108:22 I don´t know what it means, i would really apreciate your help, thank you very much
@aapkanigam
@aapkanigam 7 жыл бұрын
+Alvi Roces Cortez make sure you are not submitting any file with this serialize method
@jhonhernandez9210
@jhonhernandez9210 6 жыл бұрын
And the contact with the data base? you are not using ADO... so the web config data base connection is missing
@mohamedsuhathsinnalebbe861
@mohamedsuhathsinnalebbe861 5 жыл бұрын
i faced this type of problem Uncaught TypeError: $(...).modal is not a function pls help
@jaylovett2237
@jaylovett2237 7 жыл бұрын
Hello Ashish, Awesome tutorials! How would you implement validation in the modal? I have watched part 12 and 29 but those don't seem to apply to the modal. Thanks -
@aapkanigam
@aapkanigam 7 жыл бұрын
+Jay Lovett thanks .. make sure to keep your controls in form tag. If you are getting input control from partial view then write your js code in partial view instead of main view. In main view you can write code for opening and closing modal. You can also get code for each video , the link is given in the description
@mucahidakyar766
@mucahidakyar766 7 жыл бұрын
thank you so much for Awesome videos ? I have a question var url="/Test/AddEditEmployee?EmployeeId="+employeeId; $("#myModalBodyDiv1").load(url,function(){ $("#myModal1").modal("show"); }) when i write this part, it is not load partial view in modal and i take 404 (not found) error .. What should i do ?
@aapkanigam
@aapkanigam 7 жыл бұрын
+mücahid akyar Please try the code from the link given in description
@mucahidakyar766
@mucahidakyar766 7 жыл бұрын
i tried it but i use entity framework 6 . Can it be a reason for error ?
@aapkanigam
@aapkanigam 7 жыл бұрын
+mücahid akyar it should not . Have you created a partial view and a method which will return this.
@murtazaahmed8229
@murtazaahmed8229 7 жыл бұрын
Hey Bro can you tell me how to implement validation in these field i'm trying but validation message not showing this is modal validation ([Required(ErrorMessage = "This Field is Required")] public string StudentName { get; set; }) clientsite validation message ( @Html.TextBoxFor(m => m.StudentName, new { @id = "StuName", @class = "form-control", @placeholder = "Name*" }) @Html.ValidationMessageFor(m => m.StudentName, "", new { @class = "text-danger" }) ) if i empty any field form not submit is good but no message show
@aapkanigam
@aapkanigam 7 жыл бұрын
+Murtaza Ahmed watch part 29 or part 12
@aapkanigam
@aapkanigam 7 жыл бұрын
+Murtaza Ahmed also, dont give ID to your studentName textbox. You can excess textbox in jquery by using StudentName as id
@harirajanala9865
@harirajanala9865 5 жыл бұрын
Bro Where is Git Hub Code For This...?
@AminVincent
@AminVincent 7 жыл бұрын
great tutorial, but in partial2 you didn't hide modal after clicking save or update cz firstly you have given the name of modal in index.cshtml is myModal1 but in partial2 you hide that modal by calling myModal so if i try this it doesn't work for me...But in your code tutorial above it's work in me not..
@ashishpatil9559
@ashishpatil9559 4 жыл бұрын
Why are you working on only one page
@murtazaahmed8229
@murtazaahmed8229 7 жыл бұрын
Bro My Validation not working form submit null :(
@aapkanigam
@aapkanigam 7 жыл бұрын
+Murtaza Ahmed watch part 29 or part 12
@achalprajapati1192
@achalprajapati1192 7 жыл бұрын
Nice tutorial and great method .. can you provide source code on my mail id.?
@aapkanigam
@aapkanigam 7 жыл бұрын
+Achal Prajapati thanks.. source code link is given in description box
@dattatreyakulkarni541
@dattatreyakulkarni541 3 жыл бұрын
Here mising validate and I didn't come to know why you are refreshing page. Dont take negative
@raghvendramishra9766
@raghvendramishra9766 6 жыл бұрын
speak loudly sir jee..
Part 21- Layout View in an ASP.NET MVC Application
8:43
Technotips Ashish
Рет қаралды 18 М.
jQuery Ajax CRUD in ASP.NET Core MVC using Popup Dialog
59:47
CodAffection
Рет қаралды 179 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 62 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 1,8 МЛН
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН
crud operation mvc using  partial view jquery modal popup
20:31
Haritha Computers & Technology
Рет қаралды 31 М.
Partial views in asp net core
7:50
kudvenkat
Рет қаралды 58 М.
Ajax tutorial in ASP.NET C# web programming partial page updates
38:12
Programming w/ Professor Sluiter
Рет қаралды 33 М.
Edit Detail Delete using Modal Popup in ASP.NET CORE
13:23
ASP.NET MVC
Рет қаралды 49 М.
How to use Partial View in ASP.NET CORE
12:13
ASP.NET MVC
Рет қаралды 21 М.
Part 37- Search record in Asp.net mvc using Jquery and Partial View
24:19
Technotips Ashish
Рет қаралды 21 М.
Save Data using Modal Pop Up in ASP.NET CORE WITH BootStrap JQuery
18:22
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 62 МЛН