%@ Control Language="c#" Inherits="QP7.Site43.Template78.InsFondChildren_ChildrenRightPart" ClassName="InsFondChildren_ChildrenRightPart_Presentation" EnableViewState="True" CompilerOptions='"C:\QP7_VS_Files_2_User\Health\Sites\Site43\template_controls__Main_Template\InsFondChildren_ChildrenRightPart.ascx_partial.cs"' CodeFile="InsFondChildren_ChildrenRightPart.ascx.cs" %>
<%@ import NameSpace="Quantumart.QPublishing" %>
<%@ import NameSpace="System.IO" %>
<%@ import NameSpace="System.Data" %>
<%@ Register TagPrefix="qp" NameSpace="Quantumart.QPublishing" Assembly="Quantumart" %>
-----------------------------------------------------------------------
=================================================================
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
using Quantumart.QPublishing;
using System;
using System.Configuration;
using System.Web.Caching;
using System.Web.UI.WebControls;
using System.Data;
using System.Text.RegularExpressions;
using System.Text;
using System.Collections;
using System.Web.UI;
using System.Data.SqlClient;
using QPUtilities.Navigation;
using QPUtilities;
using QPUtilities.Navigation;
using QPUtilities;
namespace QP7.Site43.Template78
{
public partial class InsFondChildren_ChildrenRightPart : QPYafControls.QUserControl
{
public int ChildrensCount; // кол-во записей детей
public string dispBlock = "style=\"display: none\"";
protected void LoadGeneric(Object sender, EventArgs e)
{
string cmdSQL = String.Format(@" select [Fields]
from content_{1}_{0} C
order by Position "
, IsStage ? "stage" : "live"
, GetContentID("Фонды Дети"));
DataTable dataChild = GetData(cmdSQL.Replace("[Fields]", "top 3 C.*"));
container.DataSource = dataChild;
DataTable dataCnt = GetData(cmdSQL.Replace("[Fields]", " * "));
ChildrensCount = dataCnt.Rows.Count;
// ChildrensCount = dataCnt.Columns.Count;
}
override public void InitUserHandlers(EventArgs e)
{
LoadGeneric(this, e);
}
}
}