Scenario Background: 1. Two radio buttons - "Default" & "Preferred" 2. One Text box - "DirPath"(To show Default/Preferred path based on radio selection) 3. Inside model class, there are two class members (string DefP, PrefP - which holds the Default/Preferred path) and are initialized by reading some database (Consider registry) when MVC action is performed for the first time.
Requirement: 1. When "Default" radio button is pressed, "DirPath" should fetch latest DefP and PrefP should not be fetched (Though it is not being shown) 2. Similarly, When "Preferred" radio button is pressed, "DirPath" should fetch latest PrefP and DefP should not be fetched (Though it is not being shown). 3. View (UI)should not be reloaded.
Reason: To restrict the fetching of data only to required extent.