IW1QLH
Ham radio ed altro ancora...
Advertisement
Home arrow Articles
Thursday, 20 November 2008
Main Menu
Home
Project - Software
Projects - Hardware
Articles
Meteo italia
Il mio lavoro
Links
SSTV Web Ring
Contatti
Cerca
Libri
Log book
Download
Forum
HRD Label Download
Last stable version
Development release
Latest files
Sep.25
68
FileTable Manager 3.0 alpha
Jul.11
442
FileHRD Label 2.0
Jul.11
420
FileTable Manager 2.5.14
Jun.27
96
FileMeteosat & Italian Weather Module 3.2.0 - Drupal 6.x
Jun.27
29
FileMeteosat & Italian Weather Module 3.2.0 - Drupal 5.x
Most Downloaded
Jul.13
2778
File iconTable Manager 1.0.3-exp
May.09
2182
File iconTable Manager 1 in 14 step
May.09
2013
File iconDigital hit counter 1.0
Jun.21
1452
File iconTable manager 2 - Formatting fields
May.18
1376
File iconTable Manager mambot/plugin 1.0.0
Change the connection string via Business Logic Layer (BLL) PDF Print E-mail
ASPX.CS C# - How to change the connection string via Business Logic Layer (BLL)

[System.ComponentModel.DataObject]
public class CustomerBLL : BaseBLL
{

    private CustomerTableAdapter _adapter = null;
    protected CustomerTableAdapter Adapter
    {
        get
        {
            if (_adapter == null)
                _adapter = new CustomerTableAdapter();
            if (HttpContext.Current.Session["ConnStr"] != null)
                _adapter.Connection.ConnectionString = "My connection string";
            return _adapter;
        }
    }

    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
    public DataSet.CustomerDataTable GetData()
    {
        return Adapter.GetData();
    }

}

Last Updated ( Wednesday, 28 February 2007 )
< Prev   Next >
Login Form
Username

Password

Remember me
Forgotten your password?
No account yet? Create one
TopHost

Tophost Hosting

 
Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.
Design by Mamboteam.com | Powered by Mambobanner.de