Click here to Skip to main content
15,918,742 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have problem with the flow of my project please tell me whether it is possible or not,
I have one grid with radio buttons with the budget names.
i have two buttons under it to load the selected budget and another is to take the snapshot.
now problem is my grid views are filling to the next page when i load the budget but i want snapshot of the gridviews on the same page before loading these budget gridviews.
i have done this,
the procedures i have used for filling the grid views i filled in the dataset on snapshot click and exported to pdf. but the calculations done on next page while loading these grid views obviously not accessible to me. i want some solution to acces these calculations from the next page to previous page. please help me.....
Posted

1 solution

I believe you have an issue with the way you have structured your pages here. Your pages should only exist to display your information to the user, or collect information from the user. There should never(with few exceptions) be calculations within UI code. Those calculations should be moved either into a domain level class which is where they belong. That way the code becomes reusable and accessible to any page that may require it.

Some may suggest that you should just make the calculation methods public static in the page you need them from, but that is a bad idea, especially when it comes to the maintainability of your application.
 
Share this answer
 
v2
Comments
Nelek 12-Oct-12 11:00am    
Nice explanation, +5
fjdiewornncalwe 12-Oct-12 11:03am    
Thanks Nelek

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900