?
Solved

JQuery Plugins and FormView in ASP.net 4.0

Posted on 2010-11-22
3
Medium Priority
?
805 Views
Last Modified: 2012-05-10
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.
0
Comment
Question by:milindsaraswala
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Expert Comment

by:Codebot
ID: 34187004
You need to call validation function on button click instead of form.
On button click of insert or edit call validation function.
0
 
LVL 5

Author Comment

by:milindsaraswala
ID: 34187025
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
0
 
LVL 6

Accepted Solution

by:
Codebot earned 2000 total points
ID: 34187159
you can apply same rule there.
there are many ways to do that either you can use querry string value or use any hidden field or record id to compare mode of form.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question