The best teacher on the internet! what happens if the validator does not allow the execution of commands, remain stuck in disable mode.
@kentzurichanthonycalderon44572 ай бұрын
agree
@jaivirsingh81329 жыл бұрын
Hi Venkat. You are doing a tremendous job to help millions. I tried to disable button to avoid double click using this trick. But its not working well if validations are applied on button. In case of client side validations, its continuously showing Please Wait... text. How to solve this problem?
@vivekkrishnan57649 жыл бұрын
Great post! It helped me to fix an issue for a similar change I did for disabling a button. The issue was that the button post back was not happening in Safari/Firefox browser, when I added onclientclick on button control. I followed the 2nd example shown in the video by adding it to the onclick event under page_load, and it worked beautifully! Another tip I would like to suggest is, append (if !(page_clientvalidate() {false}; to this.disabled = true, so that any client validations such as checking mandatory fields, character length etc will be triggered before the button is disabled.
@AbhilashThomas9 жыл бұрын
Thank you for such good explanation, i was struggling without this last 3 months for a critical project.
@gabrielconstantinescu97253 жыл бұрын
Very good. Simple and elegant. I saw many ways of doing that but there were a lot more complicated than this.
@TewhideFirst8 жыл бұрын
Excellent work. very short very simple and practical.
@Csharp-video-tutorialsBlogspot8 жыл бұрын
+Sadat Kemal Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful. I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you kzbin.infoplaylists?view=1&sort=dd If you need DVDs or to download all the videos for offline viewing please visit www.pragimtech.com/kudvenkat_dvd.aspx Slides and Text Version of the videos can be found on my blog csharp-video-tutorials.blogspot.com Tips to effectively use my youtube channel. kzbin.info/www/bejne/r2ibYYCtnb5qZtU If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel. kzbin.info If you like these videos, please click on the THUMBS UP button below the video. May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them. Good Luck Venkat
@thethomasproject6 жыл бұрын
Thanks for this. Only recommendation I'd make is to isolate the example from a full build.
@paritoshshah83614 жыл бұрын
Absolute master stroke.... save much time.... thank you very much..
@rameshvemula87288 жыл бұрын
Wonderful work, You solved my big headache.
@bolikdimon8 жыл бұрын
Great post. But how to modify this behaviour in case if there are some validators on page? If first click triggers validation error then the button will be disabled for the second time. Thanks
@JediPhantom9 жыл бұрын
fantastic, always wanted to know how to do this..thank you
@mahipalkamanchi9 жыл бұрын
thank u sir...! sir how to avoid duplicate entry to database from Data entry form when user press F5.
@madhusudansharma3449 жыл бұрын
Hi Venkat, This doesn't work when you are using Validation controls. For an example if you will use requirefieldvalidator in the form and let it to validate the textbox. Your form will not be posted back but button will be disabled. Kindly guide me to handle that situation. Thanks in advance
@civranjan6 жыл бұрын
I am using fileuploader and dropdown list to select data. After aubmiting file my server side control fluctuate. After using update panel and trigger . Please show some path
@HebaAmer20006 жыл бұрын
Excellent, thank you. But I cannot still make it work when there is validation on the page using RequiredFieldValidator
@jaivirsingh81329 жыл бұрын
Hi Venkat, I put a question to you. Now I found the answer and sharing. function UpdateClick(btn) { for (i = 0; i < Page_Validators.length; i++) { ValidatorValidate(Page_Validators[i]); if (Page_Validators[i].isvalid == false) return false; } btn.disabled = 'false'; btn.value = 'Please Wait...'; return true; }
@madhusudansharma3449 жыл бұрын
+Jaivir Singh does it work if you don't have any validation control on page?
Hello, I would like to thank you for the video. You prevent double clicking on the button to not insert into the database twice, but how about if we click on 'Enter', i think your code will not work ! If someone here know how can i do the same for the click on 'Enter' please share the code. Thank you
@ajithkts3 жыл бұрын
Thank you soooo much..........
@deepakpathak48014 жыл бұрын
Valuable trik thanks
@abhinavkumar82718 жыл бұрын
Excellent one..
@ajaysinghbisht74765 жыл бұрын
Which book is best for design Java script??
@FG-ol6ye2 жыл бұрын
How can this be done on .net 6 with razor page? many thanks!
@divewithshubham8 жыл бұрын
How to prevent button click getting fired twice?
@ABnSuItan8 жыл бұрын
thanks
@serkantepe477 жыл бұрын
Hello, why does the ScriptManager.RegisterStartupScript method not work in the safari browser?
@abhisheksutar17476 жыл бұрын
this.disabled=true;this.value='Please wait' works fine but i have another javascript for required filed Validations for empty text box, when i use both script in onclick event, it stops working. Any Solution? (onclick="this.disabled=true;this.value='Please wait';return validate();")
When I use UseSubmitBehavior="false" , then $("#btn_SaveAmount").click(function () { jQuery("#form1").validationEngine(); }); Not work, Please help to solve the issue... Thank you