Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access VFP data from c# code
Message
 
 
To
12/05/2011 17:19:37
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
01510498
Message ID:
01510509
Views:
51
>Yes, please, if you dont mind.

Here is a bit of more information. From your web application you can call Environment.UserName and Environment.DomainName and they will show you the account name under which the web application is running. I have a simple TEST.ASPX that has 2 text boxes and I run this TEST.ASPX which display in the text boxes the account name.

E.g.:
UserName.Text = Environment.UserName;
DomainName.Text = Environment.UserDomainName;
This way I know the name of the account and I can add this account to the folder where VFP data reside.

Another thing is you can create an account and impersonate it in your web application. Are you familiar with Impersonation in ASP.NET app?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform