Click here to Skip to main content
15,881,139 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Export image Pin
Christian Graus26-Nov-08 20:17
protectorChristian Graus26-Nov-08 20:17 
GeneralRe: Export image Pin
shanthi jothi26-Nov-08 20:32
shanthi jothi26-Nov-08 20:32 
GeneralRe: Export image Pin
Christian Graus26-Nov-08 21:37
protectorChristian Graus26-Nov-08 21:37 
QuestionError Pin
shanthi jothi26-Nov-08 20:11
shanthi jothi26-Nov-08 20:11 
AnswerRe: Error Pin
Abhijit Jana26-Nov-08 20:16
professionalAbhijit Jana26-Nov-08 20:16 
AnswerRe: Error Pin
Christian Graus26-Nov-08 20:17
protectorChristian Graus26-Nov-08 20:17 
QuestionMS Project object access failed in IIS -Retrieving the COM class factory for component with CLSID {36D27C48-A1E8-11D3-BA55-00C04F72F325} failed due to the following error: 80080005 Pin
Rajesh VR26-Nov-08 20:07
Rajesh VR26-Nov-08 20:07 
QuestionGetting Error Pin
Satish - Developer26-Nov-08 20:04
Satish - Developer26-Nov-08 20:04 
Hi, i want to read data from csv file to datatable. But i am getting following error

"'D:\csvData.csv' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides."

The path is right only. The file csvData.csv exists in D drive.

My code is as follows

public DataTable CSVtoDataset()
   {
       DataTable dt = new DataTable();
       try
       {
           string _filepath = "D:\\csvData.csv";
           System.Data.OleDb.OleDbConnection cnCSV = new System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + _filepath + @";Extended Properties=""text;HDR=NO;FMT=Delimited""");
           System.Data.OleDb.OleDbDataAdapter daCSV = new System.Data.OleDb.OleDbDataAdapter("SELECT * FROM [Sheet1$]", cnCSV);
           DataTable dt1 = new DataTable();
           daCSV.Fill(dt1);
           return dt1;
       }
       catch (OleDbException dataex)
       {
           Response.Write("<br>Exp2" + dataex.Message.ToString());
       }
       return dt1;
   }


G. Satish

AnswerRe: Getting Error Pin
Christian Graus26-Nov-08 20:19
protectorChristian Graus26-Nov-08 20:19 
GeneralRe: Getting Error Pin
Satish - Developer26-Nov-08 20:50
Satish - Developer26-Nov-08 20:50 
GeneralRe: Getting Error Pin
Christian Graus26-Nov-08 21:35
protectorChristian Graus26-Nov-08 21:35 
AnswerRe: Getting Error Pin
Abhijit Jana26-Nov-08 20:21
professionalAbhijit Jana26-Nov-08 20:21 
GeneralRe: Getting Error Pin
Satish - Developer26-Nov-08 20:47
Satish - Developer26-Nov-08 20:47 
GeneralRe: Getting Error Pin
Christian Graus26-Nov-08 21:42
protectorChristian Graus26-Nov-08 21:42 
Questionhow to Place Confirm Message box in Code Behind??? Pin
mr_muskurahat26-Nov-08 20:01
mr_muskurahat26-Nov-08 20:01 
AnswerRe: how to Place Confirm Message box in Code Behind??? Pin
Christian Graus26-Nov-08 20:22
protectorChristian Graus26-Nov-08 20:22 
GeneralRe: how to Place Confirm Message box in Code Behind??? Pin
mr_muskurahat26-Nov-08 21:38
mr_muskurahat26-Nov-08 21:38 
GeneralRe: how to Place Confirm Message box in Code Behind??? Pin
Christian Graus26-Nov-08 21:41
protectorChristian Graus26-Nov-08 21:41 
QuestionTo display Random Images from database in a datalist Pin
div_gusain26-Nov-08 19:47
div_gusain26-Nov-08 19:47 
AnswerRe: To display Random Images from database in a datalist Pin
Christian Graus26-Nov-08 20:23
protectorChristian Graus26-Nov-08 20:23 
GeneralRe: To display Random Images from database in a datalist Pin
div_gusain26-Nov-08 21:12
div_gusain26-Nov-08 21:12 
GeneralRe: To display Random Images from database in a datalist Pin
Christian Graus26-Nov-08 21:39
protectorChristian Graus26-Nov-08 21:39 
QuestionERP in .net Pin
ram.patamata26-Nov-08 19:32
ram.patamata26-Nov-08 19:32 
AnswerRe: ERP in .net Pin
Abhijit Jana26-Nov-08 20:12
professionalAbhijit Jana26-Nov-08 20:12 
QuestionImport DataRow into DataTable Pin
codingrocks26-Nov-08 18:26
codingrocks26-Nov-08 18:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.