This project is read-only.

Code enhancements

Apr 24, 2010 at 12:49 AM
Edited Apr 24, 2010 at 12:49 AM

Hi,

- Applies only if you use the code to add to other VS.net web project ... 

ArrayList is reused on postback !

          I am just working on your code in a web page. I added your SSASObjects.cs code.

          I am displaying as

                    SSASPartitions ss = new SSASPartitions("localhost", "CubeCatalogName");

                     gvSSASPartitions.DataSource = ss.PartitionList;            // Simple gridview with id =gvSSASPartitions

                     gvSSASPartitions.DataBind();

       Fix: Reset the arraylist when you call the method.

                 private static void PopulatePartitionList()        {
                                 partitionlist = new ArrayList();                      // Add this line to your method so that it will reset when you call.

Hope you consider it.

 

Regards,