I am using a webgrid in a usercontrol that shows our network status in descending order for the past several months. I would like it to show only the data from the last 90 days. Please help and many thanks! My .cs code is shown below:
public partial class UserControls_Network_StatusLog : Port.Base.PortUserControl{ protected void Page_Load(object sender, EventArgs e) {
} protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e) { e.Arguments.SortExpression = "Date Occurred DESC"; }}
Wouldn't you have to include some type of query in your data connection?
Todays date minus 90 days...