I am making changes to an ASP .NET app that I did not write, and I noticed that it has two pages that are virtually identical. I have compared the vb files behind them, and there are a few very minor differences that don't affect the logic of the program. The page layouts of both pages are exactly the same.
The first page takes user input in textboxes, and when a button is clicked, the input is validated, and a datagrid on the same page is filled with the input. Then it does a Response.Redirect to the other identical page, where it loads that datagrid and displays it. This page takes more user input, and when the button is clicked, does the same input validation, fills the datagrid, then switches back to the other form. The pages switch back and forth until the user is finished entering information.
I have taken one of the identical pages out of the project and tested the app. It functions the same as it did with both pages. I can't see any reason to have both pages in the app, but, I haven't had much experience with web apps.
Is there any reason to have two identical pages?
Thanks,
Andrea
The first page takes user input in textboxes, and when a button is clicked, the input is validated, and a datagrid on the same page is filled with the input. Then it does a Response.Redirect to the other identical page, where it loads that datagrid and displays it. This page takes more user input, and when the button is clicked, does the same input validation, fills the datagrid, then switches back to the other form. The pages switch back and forth until the user is finished entering information.
I have taken one of the identical pages out of the project and tested the app. It functions the same as it did with both pages. I can't see any reason to have both pages in the app, but, I haven't had much experience with web apps.
Is there any reason to have two identical pages?
Thanks,
Andrea