S
Steven Edison
I'm sure this will be a simple one...
I have a SqlDataSource that I need a WHERE
clause on it ONLY when the querystring contains
"ProjectID", otherwise I don't need it.
If you come to the page with: .aspx?ProjectID=1039
the DataView will only populate with 1039 projects,
otherwise, you get all project records.
Here's the way I have it now.
<SelectParameters>
<asp:QueryStringParameter DefaultValue="0" Name="ProjectID"
QueryStringField="ProjectID" Type="Int32" />
</SelectParameters>
What can I do to get all records when there's no querystring?
Thanks!
Steven
I have a SqlDataSource that I need a WHERE
clause on it ONLY when the querystring contains
"ProjectID", otherwise I don't need it.
If you come to the page with: .aspx?ProjectID=1039
the DataView will only populate with 1039 projects,
otherwise, you get all project records.
Here's the way I have it now.
<SelectParameters>
<asp:QueryStringParameter DefaultValue="0" Name="ProjectID"
QueryStringField="ProjectID" Type="Int32" />
</SelectParameters>
What can I do to get all records when there's no querystring?
Thanks!
Steven