Q: prevent the source code from being viewed

G

Guest

Hello,
I am using asp.net c#, when users login into my application through mixed
windows-form authentication, is there a way that they can see the source
code, if yes, how can I prevent that? I need to prevent the source code from
being viewed by users since there is a user and password declared in the
connection string.
Thanks,
Jim.
 
L

Lucas Tam

Hello,
I am using asp.net c#, when users login into my application through
mixed windows-form authentication, is there a way that they can see
the source code, if yes, how can I prevent that? I need to prevent the
source code from being viewed by users since there is a user and
password declared in the connection string.


Turn off Remote Errors.

And obfuscate your code.
 
K

Kevin Spencer

I assume you're talking about the .Net source code on the server, rather
than the HTML and JavaScript source code on the client, right? If so, if
anyone but you can see the source code on the server, the server has a real
security problem. IOW, it should not be an issue.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,034
Messages
2,570,356
Members
47,002
Latest member
RobertoLip

Latest Threads

Top