Current filter:
                                You should refresh the page.
                                  • Hi,

                                    In v15.1 I used sqldatasource.ConfigureConnectionParameters () but this method is obsolet in 15.2.
                                    Do you have an example with 15.2 (best practice)?

                                    In 15.1 my code is:

                                    SqlDataSource sd = new SqlDataSource();
                                                sd.Name = DataSource.Name;
                                                if (sd.ConfigureConnectionParameters())
                                                    string Xml = sd.SaveToXml().ToString();                
                                                    return true;
                                                return false;

                                1 Solution

                                Creation Date Importance Sort by
                                Hello Mohamed,
                                In version 15.2, the SqlDataSourceUIHelper.ConfigureConnectionParameters(SqlDataSource) method is marked as obsolete. We recommend that you use the following method instead: 
                                DevExpress.DataAccess.UI.Sql.SqlDataSourceUIHelper.ConfigureConnectionParameters(SqlDataSource,ConfigureConnectionContext). This overload allows you to specify required services by using ConfigureConnectionContext's corresponding properties. For example:
                                ConfigureConnectionContext context = new DevExpress.DataAccess.UI.Sql.ConfigureConnectionContext(); context.Owner = this; context.ConnectionStorageService = //... DevExpress.DataAccess.UI.Sql.SqlDataSourceUIHelper.ConfigureConnectionParameters(sqlDataSource1, context);
                                Please note that if you don't need to specify additional services or parameters, you can keep using the SqlDataSourceUIHelper.ConfigureConnectionParameters(SqlDataSource) method.
                                Let me know if I can be of further help.
                                • Jannet (DevExpress Support) 12.04.2015
                                  I want to follow up with you. I've just discussed this issue with my team and we've decided to remove the Obsolete attribute from some methods including the SqlDataSourceUIHelper.ConfigureConnectionParameters(SqlDataSource) method for your convenience.

                                  We appreciate your cooperation.
                                • m ben 12.04.2015

                                  thx a lot