Zmenil som kod zdroja - pridal som OnSelected="sourceZoznam_Selected"
<asp:SqlDataSource ID="sourceZoznam" runat="server" ConnectionString="<%$ ConnectionStrings:PersonalConnectionString %>"
SelectCommand="GetPrislusnici" SelectCommandType="StoredProcedure" onselecting="sourceZoznam_Selecting" OnSelected="sourceZoznam_Selected" >
<SelectParameters>
<asp:ControlParameter ControlID="VyberORKR" Name="OrgJednotkaH" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="VyberOdbornost" Name="odbKey" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="PlatnostOdTextBox" Name="PlatnostOd" PropertyName="Text" Type="DateTime" />
<asp:ControlParameter ControlID="PlatnostDoTextBox" Name="PlatnostDo" PropertyName="Text" Type="DateTime" />
</SelectParameters>
</asp:SqlDataSource>
a kod
protected void sourceZoznam_Selected(object sender, SqlDataSourceSelectingEventArgs e)
{
LblPocetZaznamov.Text = e.Arguments.TotalRowCount.ToString();
}
ale pri kompilácii vyhodí chybu "Error 1 No overload for 'sourceZoznam_Selected' matches delegate 'System.Web.UI.WebControls.SqlDataSourceStatusEventHandler' D:\Users\stanislav.klanduch\Documents\Visual Studio 2008\WebSites\EvidOdbornosti\Vybery.aspx 140"
|