Click here to Skip to main content
15,897,704 members

Comments by Mohandas_Kulasekaran (Top 11 by date)

Mohandas_Kulasekaran 23-Jun-11 3:56am View    
Your suggestion to use parameterized query worked. Thanks Patel,
Mohandas_Kulasekaran 23-Jun-11 2:33am View    
Hi,

Thank for your response. I have already tried Replace() as said by you. The query throws no exception, but it neither returns rows because the parameter values changes to "Icom 20'' Extension Cable f/COMMANDMIC" whereas the value in CSV is "Icom 20' Extension Cable f/COMMANDMIC".

I was not sure about using parameterized query for ODBC hence i didn't thought of that way. Thanks for throwing light on that. I will try that as well.

Thanks again.
Mohandas_Kulasekaran 23-May-11 3:30am View    
In real time excel sheet, there are over 60000 rows with 40 columns. I want only the column names without having to waste my system resource taking the excel data to a dataset or datatable.
Mohandas_Kulasekaran 21-Apr-11 8:34am View    
Aahhhhhh....... I just noticed that being redirected to another url...

Apart from the URL issue, do you find anywhere I am doing wrong in the coding???
Mohandas_Kulasekaran 21-Apr-11 7:34am View    
Deleted
Following is the code I tried which I worked out based on your inputs. But it doesn't download the dynamically generated file, instead, the source file which the URL refers. Following is the code

Uri myuri = new Uri("http://dropshipdirect.com/warehouse/vendor_export_speedup.php?use_link=on&ve_sid=fal9vgtv5hg3yo4ofhiqhiuogmy3dbji");
string localFolder = @"f:\Temp\DownloadedData.txt";
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(myuri);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader sr = new StreamReader(response.GetResponseStream());
StreamWriter sw = new StreamWriter(localFolder);
string feedContent = sr.ReadToEnd();
sw.WriteLine(feedContent);
sr.Close();
sw.Close();