Ahh I see what you're going for. Honestly in that situation I would use the view manager. The reason for that is that the purpose of the class is always to show just one view. The ViewManager only stores references to the controls which I believe should be pretty inexpensive and the time it would take to initialize it should be trivial. Also when you have such a complicated view it seems like it would be nice to be able to initialize it with a single call. -Justin
Justin Bozonier
Posts
-
ASP.NET inline code - architectural question -
Can I run query on data shown in DataGrid?Hi, You would actually run your "query" on the DataSet. By that I mean you can filter and sort it. Here is an example: http://samples.gotdotnet.com/quickstart/howto/doc/adoplus/FilterData.aspx Reply back if you have more questions! Justin
-
ASP.NET inline code - architectural questionFor your simple example panels would be good. If you're doing anything really complex though you could take a look at an article I wrote about handling views here: http://www.codeproject.com/useritems/ViewManagerTutorial.asp Just one more option. I'm honestly not sure how much of a performance impact this would have versus panels. Because of the simplicity of the class though I would have to lean towards that it may be a leaner solution. If anyone has any discrete data to the contrary please correct me! -Justin