Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone

If i have connection string as
Password=tiger;User ID=scott;Data Source=196.221.4512/orcl;Persist Security Info=True


and replaced it to
Password=tiger;User ID=scott;Data Source=localhost/orcl;Persist Security Info=True


and publish on server so when user retrieve data will get from database on server because localhost = local server
so there no way when open my page localhost it's mining the client host not server in asp.net
Posted
Updated 13-May-11 4:33am
v2

1 solution

No, there is no way. You do not have access from the server to your clients PC at all, for security reasons.
 
Share this answer
 
Comments
Mostafa Elsadany 13-May-11 10:12am    
if want get data from database to
sever
as
if i want copy
data from client DB to server DB
there is no way
OriginalGriff 13-May-11 10:18am    
Not unless you can persuade the client to open his database up to the internet (Remote addressing) - unlikely with most clients, or upload his entire database as a file, no.
Mostafa Elsadany 13-May-11 10:37am    
ok thanks for help
but i think fiend idea
to that

javascript is runing as client

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900