1
Answer

Windows form control and sql authentication

ShugMagoo

ShugMagoo

19y
5.8k
1
I had an asp page accessing a database and wanted to do away with the asp and make it a Windows form user control. I moved my c# code into a control class and added it to my html page via the object keyword. Now I cannot access my database even though its the same code. Now that I don't have a webconfig file how do I authenticate users to access the database. Right now it does not even work for me on my 'localhost'. Any ideas? Thanks in advance. Pat
Answers (1)
0
mibuyt

mibuyt

NA 512 0 19y
Hmm.. maybe you can have to look at Code Access Security :) My scenario is different. I want to have a C# windows control embedded to asp.net to be able to access my local machine hardware like smart card readers. Hope it helps. Cheers.