Zdravím. Ako jednoducho zistím aké parametre reálne posielam z webaplikácie vo Visual Studiu 2010 Webdeloper do Stored procedury na SQL 2008 R2 Express. Príklad SqlDataSource
<asp:SqlDataSource ID="sourceZoznam" runat="server" ConnectionString="<%$ ConnectionStrings:PersonalConnectionString %>" SelectCommand="GetPrislusniciVyberS" SelectCommandType="StoredProcedure" OnSelected="sourceZoznam_Selected">
<SelectParameters>
<asp:ControlParameter ControlID="RadioButtonList1" Name="Platnost" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="VyberORKR" Name="OrgJednotkaH" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="VyberSluzby" Name="SluzbaId" PropertyName="SelectedValue" Type="Int32" />
<asp:ControlParameter ControlID="PlatnostOdTextBox" Name="PlatnostOd" PropertyName="Text" Type="DateTime" />
<asp:ControlParameter ControlID="PlatnostDoTextBox" Name="PlatnostDo" PropertyName="Text" Type="DateTime" />
<asp:ProfileParameter DefaultValue="1" Name="Kraj" PropertyName="Kraj" Type="Int32" />
<asp:ControlParameter ControlID="chkSkolitel" Name="ajSkolitel" DefaultValue="0" PropertyName="Checked" Type="Int32" />
<asp:ControlParameter ControlID="DropSkolitel" Name="Skolitel" PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
Dakujem
|