Sanjeev_6 0 Newbie Poster

Good Afternoon All

We have create a web application in asp.net mvc 5 and we want to if my application web form 4 textbox and data are same then show error duplicate entry else in 4 textbox any one box data is diffrent ( Data not exists in database ) then data save in my database..

Example :-
First Table

TblMaterial
ID Material Type
1 Milk
2 Paper
3 Bag
4 Fan
5 Bulbs

Second table

TblCustomerFrom
ID Customer From
1 India
2 China
3 America
4 Poland
5 England

Third Table

TblCustomer
ID Customer Name Material Type Customer From Action
1 John 1 1 Save
2 John 1 2 Save
3 John 2 1 Save
4 John 1 1 # Duplicate Data #
5 John 1 3 Save