private DataSet GetOrderLineItems() { OrderAdmin _OrderAdmin = new OrderAdmin(); string stdate = String.Empty; string enddate = String.Empty; //Check for Search is enabled or not if (SearchEnabled) { stdate = txtStartDate.Text.Trim(); enddate = txtEndDate.Text.Trim(); } DataSet MyDataSet = _OrderAdmin.GetOrderLineItems(txtorderid.Text.Trim(),txtfirstname.Text.Trim(),txtlastname.Text.Trim(),txtcompanyname.Text.Trim(),txtaccountnumber.Text.Trim(),stdate ,enddate, int.Parse(ListOrderStatus.SelectedValue.ToString()), ZNodeConfigManager.SiteConfig.PortalID); return MyDataSet; }