rRetaining Data in web form after transfer to another form and back
-
Hi, I have two fileds in a form both are combo box ie month and year and not data bound (form1) . from this form I am going to another page (form2) and from form2 back to form1 I have to show the same values of the combo ie month and year(which was selected by user ) when form 1 is loaded again what is the correct way of passing data in two web pages in asp.net ie retaining the values of the drop down list in the form1 no use of sessions or global variables please What is the correct way of doing it thanks in advance :) Sakshi
-
Hi, I have two fileds in a form both are combo box ie month and year and not data bound (form1) . from this form I am going to another page (form2) and from form2 back to form1 I have to show the same values of the combo ie month and year(which was selected by user ) when form 1 is loaded again what is the correct way of passing data in two web pages in asp.net ie retaining the values of the drop down list in the form1 no use of sessions or global variables please What is the correct way of doing it thanks in advance :) Sakshi
It's not possible. Instead, you'd need to turn the two pages into controls, so they could both exist on one page, then viewstate will maintain the state of form1, even when it's not visible, and form2 is being shown.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )