Retain Drop Down List Current Values between response.redirects
-
Hi, I have three drop down lists in page1. DDL2 is values are dependant on DDL1, DDL3 values are dependant on DDL2. Once I select DDL values I have submit button that takes the values from these DDL values and redirects to appropriate page based on case statements. Now the issue is the new loaded page is opening with DDL values default to their first value rather than retaining the vales from prevous page values. Can someone help on retaining the values of the DDL between response.redirects. Appreciate all the help Raj D
Raj D
-
Hi, I have three drop down lists in page1. DDL2 is values are dependant on DDL1, DDL3 values are dependant on DDL2. Once I select DDL values I have submit button that takes the values from these DDL values and redirects to appropriate page based on case statements. Now the issue is the new loaded page is opening with DDL values default to their first value rather than retaining the vales from prevous page values. Can someone help on retaining the values of the DDL between response.redirects. Appreciate all the help Raj D
Raj D
- use server transfer and properties. 2) if using framework 2.0, u can choose posturl property of submit page. 3) session, hidden var are other ways to maintain state. I hope this will help you. Thx Amit
-
Hi, I have three drop down lists in page1. DDL2 is values are dependant on DDL1, DDL3 values are dependant on DDL2. Once I select DDL values I have submit button that takes the values from these DDL values and redirects to appropriate page based on case statements. Now the issue is the new loaded page is opening with DDL values default to their first value rather than retaining the vales from prevous page values. Can someone help on retaining the values of the DDL between response.redirects. Appreciate all the help Raj D
Raj D
There are many ways to do it. I think you should pass the DDL values through querystring and trap in the next page otherwise session and hidden fields are also useful.