LOL the ankward silense while closing the avast tab made my day, great video thanks
@aapkanigam6 жыл бұрын
Thank You, keep learning and teaching ☺
@anggitahananprimasanti24643 жыл бұрын
thank you for the tutorial
@tharindumindada48365 жыл бұрын
i was struggling for a week to do this Thanks a Lot Bro.....
@aapkanigam5 жыл бұрын
Thanks keep learning and sharing
@quadritalha63935 жыл бұрын
Thanx for explaining this concept in such a simple way.
@nhatminh63396 жыл бұрын
Hope you make more video about .NET Core!! Thank you very much !!
@kirankumari-nz8lr8 жыл бұрын
thanks for making such videos .Its helped me a lot ..keep it up
@topcat59926 жыл бұрын
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?
@suhaspatil50544 жыл бұрын
hello please share crud operation in asp.net mvc
@jacobcrosby1016 жыл бұрын
Thank you for your help.
@serhattural31687 жыл бұрын
After clicking save button page is refreshing. How can we prevent refresh?
@navzme6 жыл бұрын
Thanks for awesome video
@augustinomateso55687 жыл бұрын
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...!?
@aapkanigam7 жыл бұрын
+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 .
@augustinomateso55687 жыл бұрын
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
@kaushikbhadani42277 жыл бұрын
excellent!!
@vinodcobraz7 жыл бұрын
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?
@ManuelRBercian7 жыл бұрын
Great, congratulations!! and thanks
@aapkanigam7 жыл бұрын
+Manuel Ramirez thank..keep learning and sharing
@aaronaaronaaron59227 жыл бұрын
very, very Thanks!!!
@bilalyousuf68147 жыл бұрын
Thanku sir :) one thing to ask you ,how can we get site name also to be edited (when we are updating)
@aniljain507 жыл бұрын
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.
@aapkanigam7 жыл бұрын
+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 .
@aniljain507 жыл бұрын
When I click on the submit button after executing the submit procedure the modal disappears!!
@aapkanigam7 жыл бұрын
+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.
@aniljain507 жыл бұрын
No Ashish Tiwary.. there's no code to hide. I'll figure out a way. But your response is too quick!! Keep it up!!
@aapkanigam7 жыл бұрын
+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.
@Yoftahie17 жыл бұрын
Thank you
@aapkanigam7 жыл бұрын
+Yoftahie Suleiman your welcome . Please share this if you find this useful.
@MainUddin-rd5ck7 жыл бұрын
sir, thank you form nice tutorial, it is working fine in local machine, but not working after host....
@narendarsingh46726 жыл бұрын
very nice sir
@aapkanigam6 жыл бұрын
Thanks .. keep learning and sharing 🤗
@narendarsingh46726 жыл бұрын
@@aapkanigam you are great sir,very nice your way of teaching style.thanks a lot.
@zhandossaukmanov32297 жыл бұрын
Where I can download full source code?
@vinayakjambhale59856 жыл бұрын
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?
@aapkanigam6 жыл бұрын
watch part 32, 33, 34 for image upload
@satyajitbhapkar72737 жыл бұрын
Thanks Sir
@AlviRacingClub7 жыл бұрын
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?
@aapkanigam7 жыл бұрын
+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.
@AlviRacingClub7 жыл бұрын
The jquery returns no error, it just gets the $("#myForm").serialize() equals to null("") and then continue running
@AlviRacingClub7 жыл бұрын
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
@aapkanigam7 жыл бұрын
+Alvi Roces Cortez make sure you are not submitting any file with this serialize method
@jhonhernandez92106 жыл бұрын
And the contact with the data base? you are not using ADO... so the web config data base connection is missing
@mohamedsuhathsinnalebbe8615 жыл бұрын
i faced this type of problem Uncaught TypeError: $(...).modal is not a function pls help
@jaylovett22377 жыл бұрын
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 -
@aapkanigam7 жыл бұрын
+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
@mucahidakyar7667 жыл бұрын
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 ?
@aapkanigam7 жыл бұрын
+mücahid akyar Please try the code from the link given in description
@mucahidakyar7667 жыл бұрын
i tried it but i use entity framework 6 . Can it be a reason for error ?
@aapkanigam7 жыл бұрын
+mücahid akyar it should not . Have you created a partial view and a method which will return this.
@murtazaahmed82297 жыл бұрын
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
@aapkanigam7 жыл бұрын
+Murtaza Ahmed watch part 29 or part 12
@aapkanigam7 жыл бұрын
+Murtaza Ahmed also, dont give ID to your studentName textbox. You can excess textbox in jquery by using StudentName as id
@harirajanala98655 жыл бұрын
Bro Where is Git Hub Code For This...?
@AminVincent7 жыл бұрын
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..
@ashishpatil95594 жыл бұрын
Why are you working on only one page
@murtazaahmed82297 жыл бұрын
Bro My Validation not working form submit null :(
@aapkanigam7 жыл бұрын
+Murtaza Ahmed watch part 29 or part 12
@achalprajapati11927 жыл бұрын
Nice tutorial and great method .. can you provide source code on my mail id.?
@aapkanigam7 жыл бұрын
+Achal Prajapati thanks.. source code link is given in description box
@dattatreyakulkarni5413 жыл бұрын
Here mising validate and I didn't come to know why you are refreshing page. Dont take negative