Link to home
Start Free TrialLog in
Avatar of milindsaraswala
milindsaraswala

asked on

JQuery Plugins and FormView in ASP.net 4.0

I have implemented JQuery plugin my application which is having FormView. I have also added JQuery Validation method successfully which will check duplicate Company Name at the time of Insert mode.
Now situation is like JQuery plugin can work at time of Insertion mode Perfectly. It will check duplicate addition of Company Name. But When FormView is in ReadOnly Mode and when I click on that Add New Button to make my FormView in Insert Mode than it will Check again for duplicate validation it should not be. So First question how can I exclude some button to validate form. I need to validate in Insert mode only.

Now Next another situation when I make my form In Edit mode than Company Name which already there it is checking for duplicate company name which It should not validate. Now It may happen end user may change company name in edit mode to other company name which is already in the database, So what I need to check if the company name is change than only it should validate form otherwise it should not validate company name for duplicate. How it can be happen.
Avatar of Codebot
Codebot

You need to call validation function on button click instead of form.
On button click of insert or edit call validation function.
Avatar of milindsaraswala

ASKER

That I have already plan for it. But what about edit mode. I looking like if and if only if somebody change in Company Name than only it should validate duplicate insertion or edition. How can we do that.

If you give me some code example then will be very much better
ASKER CERTIFIED SOLUTION
Avatar of Codebot
Codebot

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial