Výpis zdrojového kódu súboru 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;
public partial class 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();
if ((!IsPostBack)&&(wquZaner.Active==false))
{
wquZaner.ConnectString = AppConst.ConnectString;
wquZaner.SQLSelect = "select IdZaner, Name, IDKateg_Zaner from Zaner";
wquZaner.Open();
wquZaner.Columns["IdZaner"].Caption = "Id Žáner";
wquZaner.Columns["Name"].Caption = "Meno žánru";
wquZaner.Columns["IDKateg_Zaner"].Caption = "Id Kategória Žáner";
}
else
{
}
grdZaner.VisibleFields = "IdZaner; Name:100;IDKateg_Zaner";
grdZaner.PxDataSource = wquZaner;
//grdZaner.AllowSorting = true;
grdZaner.DataBind();
navZaner.PxDataSource = wquZaner;
navZaner.PxVisibleButtons = "FRNL";
}
}
Návrat na pôvodnú stránku