Button requires two Clicks to submit something ! (asp:RequiredFieldValidator and TinyMCE)

Asp.net using C#

Posted by iks on 1/16/2015 11:30:13 AM

Hi I was getting problem in submit data on first click, after having tinyMCE for textBox. It required to click twice before it send the form. On first click it says"You cannot leave this empty" because I had RequiuredFieldValidator for textBox, on second click it send the form.

 

And I fix this problem by adding the following property to my button:

<asp:Button.........................OnClientClick="tinyMCE.triggerSave(true,false)"/>

 

Hope it will work for you as well if you are facing the same problem.


Comments

Please leave your comment here!