473,408 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Chemin d'accès base de données Access

moi
Bonjour,

Dim strConn As String = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" &
Application.StartupPath & "\app_data\aaaaaa.mdb;"

Application.StartupPath ne fonctionne pas sous ASP.NET 2 :

BC30456: 'StartupPath' n'est pas un membre de
'System.Web.HttpApplicationState'

Merci de m'aider...
Mar 9 '06 #1
1 2244
StartupPath was never a property of the HttpApplication class. It was (and
is) available in WinForms though.

You should really consider doing something like

Server.MapPath("/app_data/aaaa.mdb")

esseyons en français....

La proprieté StartupPath nas jamais existé pour l'object HttpApplication.
Pour les application windows (non-web), l'object Application de
System.Windows.Forms contient cette proprieté - peut-être que tu tes mélange
avec cela.

Tu devrais considerer d'asseyé d'utiliser la metode Server.MapPath

Pardonnez mon français écrit!

Karl
--
http://www.openmymind.net/

"moi" <me@isa.org> wrote in message
news:Ok**************@tk2msftngp13.phx.gbl...
Bonjour,

Dim strConn As String = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" &
Application.StartupPath & "\app_data\aaaaaa.mdb;"

Application.StartupPath ne fonctionne pas sous ASP.NET 2 :

BC30456: 'StartupPath' n'est pas un membre de
'System.Web.HttpApplicationState'

Merci de m'aider...

Mar 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Oliv | last post by:
Bonjour, Est-il possible de se passer de l'instruction mysql_select_db() afin de sélectionner une base de données par défaut dans MySQL ? Je pense en particulier à l'association d'une base par...
0
by: tao | last post by:
Salut à tous Je dois réaliser une application ou j'ai besoin de sauvegarder des données de manière régulière. Au début je pensais utiliser une base de donnée de type sql mais le pc ou tournera...
0
by: Jéjé | last post by:
Hello all ! Does anybody knows a way to acces an excell file in a sequential manner ? The only modules I found 'til know to access such files always load the entire file in the memory. This can be...
0
by: Julie | last post by:
Good evening, A small email to know if among you there are some persons who were already interested in the standards of data exchange in XML. Indeed, I am at the moment in training where I have...
1
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
1
by: fab | last post by:
Bonjour, je cherche des infos sur comment faire une connexion web avec un as400, quel config il faut. Je dois faire un site web qui prends les données sur un as400. merci d'avance
7
by: relient | last post by:
Question: Why can't you access a private inherited field from a base class in a derived class? I have a *theory* of how this works, of which, I'm not completely sure of but makes logical sense to...
2
by: lahbibi | last post by:
bonjour j'utlise visual basic 6.0 et une base de données acces protégé par un mot de passe et je veux editer mes états sur crystal report 7 mais je n'arrive pas parcequ'il me demande le mot de...
0
by: emna23 | last post by:
je travaille sur un projet web en asp.net et c# et une base de données sql server 2005 j'arrive pas à me connecter à ma base. merci
15
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I met with a strange issue that derived class function can not access base class's protected member. Do you know why? Here is the error message and code. error C2248:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.