Listing the source code file CDFormat.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 CDFormat : 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)&&*/(wquCDFormat.Active==false))
{
wquCDFormat.ConnectString = AppConst.ConnectString;
wquCDFormat.SQLSelect = "select IDCDFormat, Name from CDFormat";
wquCDFormat.Open();
wquCDFormat.Columns["IDCDFormat"].Caption = "ID";
wquCDFormat.Columns["Name"].Caption = "CD Format";
}
else
{
}
grdCDFormat.VisibleFields = "";
grdCDFormat.PxDataSource = wquCDFormat;
//grdCDFormat.AllowSorting = true;
grdCDFormat.DataBind();
navCDFormat.PxDataSource = wquCDFormat;
navCDFormat.PxVisibleButtons = "FRNL";
}
}
Return to original page