Hi,
I have a url of CCAvenue with only single date for reporting https://mars.ccavenue.com/servlet/ccav.MerchantReconReport?User_Id=M_npa20362_20362&Date=2015-11-12
I need to give my reporting team for an option so that they can get the data of more than one date. i.e. fromdate and todate. To achieve this I am selecting from date and to date and on button click I have written this code
protected void btngetdata_Click(object sender, EventArgs e)
{
DateTime start = DateTime.ParseExact(txtfromDate.Text, "yyyy-MM-dd", CultureInfo.InvariantCulture);
DateTime end = DateTime.ParseExact(txttodate.Text, "yyyy-MM-dd", CultureInfo.InvariantCulture);
for (DateTime counter = start; counter <= end; counter = counter.AddDays(1))
{
string url = string.Format("https://mars.ccavenue.com/servlet/ccav.MerchantReconReport?User_Id=M_npa20362_20362&Date=" + counter);
}
}
I want output of this url to download into CSV file.
Can anyone help, its very urgent.
Your help is greatly appreciated.