Sunday, July 31, 2011

Fire validations even causesvalidation property already set to false.

In this case there are Required Feild Validator, Comapire Validator and one button and Link button. I set a validation group to Req.. validator, com.. validator and button. And set causesvalidation property false in link button. but when i click the link button, compaire validator fires. I can't understand this behaviour, anyone know this please let me know.

However i resolved it in this way.

http://forums.asp.net/t/1702558.aspx/1?Validation

Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

This will occur due to Responce.Redirect() method.

Why we use false to the second argument in above method?
The second argument to Redirect is the boolean literal false, which indicates we do not want an exception to be thrown to terminate the page. If you do not pass false, an exception will occur and this can slow down websites and complicate error handling.

:)

TinyMCE Insert/Edit link not editable

 To fix this add  e.stopImmediatePropagation()  as below. $(document).on('focusin', function (e) {             if ($(e.target).close...