Note that there are some explanatory texts on larger screens.

plurals
  1. POSet SelectParameter for SqlDataSource SelectCommand with unknown number of variables
    primarykey
    data
    text
    <pre><code>&lt;asp:SqlDataSource ID="workHourListSqlDataSource" runat="server" ConnectionString="&lt;%$ ConnectionStrings:PlaningSystemConnectionString %&gt;" SelectCommand="SELECT * FROM Date AS t1 FULL OUTER JOIN (SELECT * FROM WorkHoursEntry WHERE (WorkerID LIKE @WorkerID)) AS t2 ON t1.PKDate = t2.WorkDay LEFT OUTER JOIN Worker AS t3 ON t2.WorkerID = t3.WorkerID LEFT OUTER JOIN (SELECT * FROM Project WHERE ProjectID IN(@Project)) AS t4 ON t2.ProjectID = t4.ProjectID" FilterExpression="YearMonth IN({0})"&gt; &lt;FilterParameters&gt; &lt;asp:ControlParameter ControlID="yearMonthFilterLabel" Name="YearMonth" PropertyName="Text" Type="String" /&gt; &lt;/FilterParameters&gt; &lt;SelectParameters&gt; &lt;asp:ControlParameter ControlID="WorkerIDLabel" Name="WorkerID" PropertyName="Text" Type="String" /&gt; &lt;asp:ControlParameter ControlID="projectFilterLabel" Name="Project" PropertyName="Text" Type="String" /&gt; &lt;/SelectParameters&gt; &lt;/asp:SqlDataSource&gt; </code></pre> <p>Greetings, I have problem with @Project ControlParameter, problem is I don't know how to pass several values and FilterParameters method won't work as I want. Is there any way to pass several variables ? (without using c#).</p> <pre><code>projectFilterLabel.Text = 'aaa, bbb, ccc'; </code></pre> <p>Basically what I want to do is to select all values from Date table and join them with some values from Project table and output to DataList.</p> <p>Any help appreciated, I just started learning asp.net</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload