Thursday, 8 January 2015

nettier deepload codebehind

 

Here is a way to include deepload on code behind

using ROCE.Data;

using ROCE.Data.Bases;

 

 

TList<RoceTelesalesDailyData> telesalesdailydataAll = telesalesdailydataservice.GetAll();

 

            DataRepository.RoceTelesalesDailyDataProvider.DeepLoad(telesalesdailydataAll, false, DeepLoadType.IncludeChildren, typeof(TList<RoceTelesalesDailyData>), typeof(RoceFiscalCalendar));

            List<RoceTelesalesDailyData> telesalesdailydatas = telesalesdailydataAll.Where(i => i.CountryId == Convert.ToInt16(dataCountryId.SelectedValue) && i.DateForSource.FiscalMonthOfTheYea

 




This email has been checked for viruses by Avast antivirus software.
www.avast.com


Tuesday, 6 January 2015

Transaction in NetTier

Here is the code to apply transaction in NetTier

using (ConnectionScope.CreateTransaction())
{
//insert
//update
//delete
 ConnectionScope.Complete();
}



This email has been checked for viruses by Avast antivirus software.
www.avast.com

Monday, 5 January 2015

Page cycle event after DataSource binding

To add code behind feature after dataSource binding of grid use Page_PreRender

 

  protected void Page_PreRender(object sender, EventArgs e)

    {

        if (!IsPostBack)

ASPxGridViewDaily.AutoFilterByColumn(ASPxGridViewDaily.Columns["IsActive"], rdoFileType.SelectedItem.Value.ToString());

    }




This email has been checked for viruses by Avast antivirus software.
www.avast.com