Hi I have four fields in my view CustomerName, ContactPerson, Email, MobileNo
CustomerName , ContactPerson are Cascading Dropdown and Email and MobileNo are textboxes.
If I select the CustomerName related ContactPerson will load automatically in ContactPerson dropdown.
If i select the Contactperson the ContactPerson related Email and PhoneNo will load automatically in Email and PhoneNo textbox. I did this all task completely and all are working fine.
Now i got one issue .I explain my issue with one eg. If i select the CustomerName as "KPM Processing Limited" it load the ContactPerson (Mr.Martin) in contact person textbox which is related to CustomerName("KPM Processing Limited") and if i select the contact person name(Mr.Martin) the contact person related Email([email protected]) and phone no(123456) will automatically load in Email and PhoneNo textbox.
Now i select the another customerName (eg.N.S colors) after selecting (KPM Processing Limited) and select the contact person name related to N.S Colors(MR.Luthar). Now Mr.Luthar have mail Id but didn't have phone no so the value of phone no will be null but it shows the output as Email= [email protected] and phone no = 123456. it shows the same phone no of KPM Processing limited. it doesn't empty the text box. if it is null means it doesn't change the value . it shows the previous value This is my issue. i tried my level best to explain my issue clearly. please any one help me to resolve this issue.
My Controller Code
I tried my level best to explain my issue. please understand and give solution to my problem..
Advance Thanks..