Listing the source code file CDNosic.aspx.cs


using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using PxControls;
using PxFiles;
using System.Globalization;

public partial class CDNosic : BasePage
{

     protected void Page_Load(object sender, EventArgs e)
     {
         //rutina na vypnutie BackButonu v Browsery
         this.Context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
         this.Context.Response.Cache.SetAllowResponseInBrowserHistory(false);

         if (Request.Browser.MSDomVersion.Major == 0// Non IE Browser?)
             this.Context.Response.Cache.SetNoStore();

         PxCulture.CurrentCulture = new CultureInfo("en-US");

        if (/*(!IsPostBack)&&*/(wquCDNosic.Active==false))
        {
            wquCDNosic.ConnectString = AppConst.ConnectString;
            wquCDNosic.SQLSelect = "select IdCDNosic, Name from CDNosic";

            wquCDNosic.Open();

            wquCDNosic.Columns["IdCDNosic"].Caption = "Id";

            wquCDNosic.Columns["Name"].Caption = "CD Media";

        }
        else
        {

        }

            grdCDNosic.VisibleFields = "";
            grdCDNosic.PxDataSource = wquCDNosic;
            //grdCDNosic.AllowSorting = true;
            grdCDNosic.DataBind();

            navCDNosic.PxDataSource = wquCDNosic;
            navCDNosic.PxVisibleButtons = "FRNL";
     }
}

Return to original page