Listing the source code file Kateg_Zaner.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 Kateg_Zaner : 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)&&*/(wquKateg_Zaner.Active==false))
{
wquKateg_Zaner.ConnectString = AppConst.ConnectString;
wquKateg_Zaner.SQLSelect = "select IDKateg_Zaner, Name from Kateg_Zaner";
wquKateg_Zaner.Open();
wquKateg_Zaner.Columns["IDKateg_Zaner"].Caption = "Id";
wquKateg_Zaner.Columns["Name"].Caption = "Category the Genre";
}
else
{
}
grdKateg_Zaner.VisibleFields = "IDKateg_Zaner;Name:100";
grdKateg_Zaner.PxDataSource = wquKateg_Zaner;
//grdKateg_Zaner.AllowSorting = true;
grdKateg_Zaner.DataBind();
navKateg_Zaner.PxDataSource = wquKateg_Zaner;
navKateg_Zaner.PxVisibleButtons = "FRNL";
}
}
Return to original page