ASP.net Web Forms
-
I have few Web forms with same controls but different data. Which design pattern is suitable in this scenario? WebForm 1 (city.aspx) with combobox and grid control WebForm 2 (state.aspx) with same controls i.e, combobox and grid WebForm 3 (country.aspx) with same controls i.e, combobox and grid the structure of 3 Web forms is similar only the content is different at run time. Instead of 3 .aspx & .cs files i want to refactor and apply design pattern which would suite this scenario. Which design pattern to apply to refactor the code?
-
I have few Web forms with same controls but different data. Which design pattern is suitable in this scenario? WebForm 1 (city.aspx) with combobox and grid control WebForm 2 (state.aspx) with same controls i.e, combobox and grid WebForm 3 (country.aspx) with same controls i.e, combobox and grid the structure of 3 Web forms is similar only the content is different at run time. Instead of 3 .aspx & .cs files i want to refactor and apply design pattern which would suite this scenario. Which design pattern to apply to refactor the code?
They have design patterns for grouping controls in web forms now ? I'd imagine if you have pages with the same controls, you could make it one page and change the data sources based on a query string parameter. Or you can create a control that you can set data sources for, and consume that in three pages. But, it's just two simple controls, I don't think it's worth it.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )