Click here to Skip to main content
15,892,072 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Update Connection String Pin
Vimalsoft(Pty) Ltd2-Mar-09 19:45
professionalVimalsoft(Pty) Ltd2-Mar-09 19:45 
GeneralRe: Update Connection String Pin
Greg Chelstowski2-Mar-09 20:50
Greg Chelstowski2-Mar-09 20:50 
GeneralRe: Update Connection String Pin
Vimalsoft(Pty) Ltd4-Mar-09 1:27
professionalVimalsoft(Pty) Ltd4-Mar-09 1:27 
QuestionCan i use my own User Registartion Information Class with ASP .NET Login controls Pin
The One2-Mar-09 1:49
The One2-Mar-09 1:49 
AnswerRe: Can i use my own User Registartion Information Class with ASP .NET Login controls Pin
Abhishek Sur2-Mar-09 3:55
professionalAbhishek Sur2-Mar-09 3:55 
QuestionError occuring while developin with ASP.NET Pin
VeeKeyBee2-Mar-09 1:46
VeeKeyBee2-Mar-09 1:46 
AnswerRe: Error occuring while developin with ASP.NET Pin
Vimalsoft(Pty) Ltd2-Mar-09 1:54
professionalVimalsoft(Pty) Ltd2-Mar-09 1:54 
QuestionImport data from Excel sheet to sql Database-asp.net 2.0 Pin
Member 46590012-Mar-09 1:26
Member 46590012-Mar-09 1:26 
Currently I need to write a code To Import data from Excel sheet to sql Database-asp.net 2.0

I Have Written A function For It
Function Is Given Below ;
But as i execute it it gives Error Meaasge
"The Microsoft Jet database engine cannot open the file 'D:\'. It is already opened exclusively by another user, or you need permission to view its data."

I Have Order.xls File In D Drive



protected void btnUpload_Click1(object sender, EventArgs e)
{
string PathtoTextFile = ("D:\\");
Response.Write(PathtoTextFile);
System.Data.OleDb.OleDbConnection oCon = new System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\;Extended Properties= \"Excel 8.0;HDR=no;IMEX=1 \"");
System.Data.OleDb.OleDbDataAdapter oCmd = new System.Data.OleDb.OleDbDataAdapter("select * from Order.xls", oCon);

DataSet myDS = new DataSet();
oCmd.Fill(myDS);

oCon.Close();



}

Raghvendra

AnswerRe: Import data from Excel sheet to sql Database-asp.net 2.0 Pin
Greg Chelstowski2-Mar-09 1:34
Greg Chelstowski2-Mar-09 1:34 
GeneralRe: Import data from Excel sheet to sql Database-asp.net 2.0 Pin
Member 46590012-Mar-09 18:09
Member 46590012-Mar-09 18:09 
QuestionMethod? Pin
Karthick_gc2-Mar-09 1:05
Karthick_gc2-Mar-09 1:05 
AnswerRe: Method? Pin
Gaurav K Singh2-Mar-09 1:13
Gaurav K Singh2-Mar-09 1:13 
GeneralRe: Method? Pin
Karthick_gc2-Mar-09 1:23
Karthick_gc2-Mar-09 1:23 
GeneralRe: Method? Pin
mr_muskurahat2-Mar-09 1:26
mr_muskurahat2-Mar-09 1:26 
QuestionHow to export data from datagrid to .mdb format Pin
ballameharmurali2-Mar-09 0:21
ballameharmurali2-Mar-09 0:21 
AnswerRe: How to export data from datagrid to .mdb format Pin
Greg Chelstowski2-Mar-09 0:48
Greg Chelstowski2-Mar-09 0:48 
Questionthe state information is invalid for this page and might be corrupted. Pin
NidhiKanu1-Mar-09 23:31
professionalNidhiKanu1-Mar-09 23:31 
AnswerRe: the state information is invalid for this page and might be corrupted. Pin
Vimalsoft(Pty) Ltd1-Mar-09 23:38
professionalVimalsoft(Pty) Ltd1-Mar-09 23:38 
GeneralRe: the state information is invalid for this page and might be corrupted. Pin
NidhiKanu2-Mar-09 0:04
professionalNidhiKanu2-Mar-09 0:04 
GeneralRe: the state information is invalid for this page and might be corrupted. Pin
Vimalsoft(Pty) Ltd2-Mar-09 0:08
professionalVimalsoft(Pty) Ltd2-Mar-09 0:08 
Questionfile have to save on existing file name..., Pin
Member 38798811-Mar-09 23:26
Member 38798811-Mar-09 23:26 
AnswerRe: file have to save on existing file name..., Pin
Vimalsoft(Pty) Ltd1-Mar-09 23:33
professionalVimalsoft(Pty) Ltd1-Mar-09 23:33 
Questionpaging in repater control which is in inside the accordion control? Pin
Member 38798811-Mar-09 23:04
Member 38798811-Mar-09 23:04 
QuestionActiveX in Mozila is not working Pin
Rajeesh MP1-Mar-09 23:02
Rajeesh MP1-Mar-09 23:02 
AnswerRe: ActiveX in Mozila is not working Pin
N a v a n e e t h1-Mar-09 23:20
N a v a n e e t h1-Mar-09 23:20 

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.