Click here to Skip to main content
15,923,051 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Server.Transer Pin
pmarfleet7-Dec-07 1:59
pmarfleet7-Dec-07 1:59 
Generalcoloring label [modified] Pin
Member 47640947-Dec-07 0:58
Member 47640947-Dec-07 0:58 
GeneralRe: coloring label Pin
Michael Sync7-Dec-07 4:17
Michael Sync7-Dec-07 4:17 
GeneralRe: coloring label Pin
Member 47640947-Dec-07 21:15
Member 47640947-Dec-07 21:15 
GeneralQueryString Pin
AS@137-Dec-07 0:30
AS@137-Dec-07 0:30 
GeneralRe: QueryString Pin
Paddy Boyd7-Dec-07 0:36
Paddy Boyd7-Dec-07 0:36 
GeneralRe: QueryString Pin
That's Aragon7-Dec-07 1:34
That's Aragon7-Dec-07 1:34 
GeneralConnect to DBF Pin
AnhTin6-Dec-07 23:40
AnhTin6-Dec-07 23:40 
hi all
I try to connect to file DBF in ASP.net
this my code:
if(File.Exists(@"C:\demo\AAAdddddd.dbf"))
{
string strQuery = @"SELECT * FROM C:\demo\AAAdddddd.dbf WHERE 1=0";
string strConnectionDbf = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\demo\;Extended Properties=dBASE IV;User ID=Admin;Password=;";
OleDbConnection connect = new OleDbConnection(strConnectionDbf);
connect.Open();
OleDbDataAdapter da = new OleDbDataAdapter(strQuery, connect);
DataTable dtCol = new DataTable();
da.Fill(dtCol);
}

but i see problem
The Microsoft Jet database engine could not find the object 'AAAdddddd.dbf'. Make sure the object exists and that you spell its name and the path name correctly.

but i change name file to AAA.dbf and change strQuery = @"SELECT * FROM C:\demo\AAA.dbf WHERE 1=0";
so it run good

I dont understant. May be oledb connect to dbf file depend to name file ????
And I try many again but still error

and i am extraordinary when check file exist it still = true; ???????????

Some body show for me Why ???
GeneralPrivate Class Pin
rockz...6-Dec-07 23:32
rockz...6-Dec-07 23:32 
GeneralRe: Private Class Pin
J4amieC6-Dec-07 23:52
J4amieC6-Dec-07 23:52 
JokeRe: Private Class Pin
coolestCoder6-Dec-07 23:54
coolestCoder6-Dec-07 23:54 
GeneralRe: Private Class Pin
Colin Angus Mackay7-Dec-07 1:27
Colin Angus Mackay7-Dec-07 1:27 
GeneralRe: Private Class Pin
coolestCoder7-Dec-07 3:48
coolestCoder7-Dec-07 3:48 
GeneralNull Reference Pin
SreejithAchutan6-Dec-07 23:28
SreejithAchutan6-Dec-07 23:28 
GeneralRe: Null Reference Pin
N a v a n e e t h7-Dec-07 0:24
N a v a n e e t h7-Dec-07 0:24 
GeneralStored Procedure result in Aspx page Pin
Member 45999726-Dec-07 23:22
Member 45999726-Dec-07 23:22 
GeneralRe: Stored Procedure result in Aspx page Pin
coolestCoder6-Dec-07 23:48
coolestCoder6-Dec-07 23:48 
GeneralRe: Stored Procedure result in Aspx page Pin
neerubee26-Dec-07 22:21
neerubee26-Dec-07 22:21 
QuestionOpening a document file in a formatted way. Pin
Biswa Pujarini Mohapatra6-Dec-07 23:11
Biswa Pujarini Mohapatra6-Dec-07 23:11 
GeneralRe: Opening a document file in a formatted way. Pin
suyuan19846-Dec-07 23:21
suyuan19846-Dec-07 23:21 
QuestionWeb Parts Issue..its urgent Pin
rockz...6-Dec-07 22:50
rockz...6-Dec-07 22:50 
AnswerASP.NET javascript Calenter Control [modified] Pin
Member 22474306-Dec-07 22:43
Member 22474306-Dec-07 22:43 
GeneralRe: ASP.NET javascript Calenter Control Pin
pmarfleet6-Dec-07 22:56
pmarfleet6-Dec-07 22:56 
GeneralRe: ASP.NET javascript Calenter Control Pin
suyuan19846-Dec-07 23:26
suyuan19846-Dec-07 23:26 
GeneralRe: ASP.NET javascript Calenter Control Pin
Pete O'Hanlon7-Dec-07 4:24
mvePete O'Hanlon7-Dec-07 4:24 

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.