By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,529 Members | 1,860 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,529 IT Pros & Developers. It's quick & easy.

Q: prevent the source code from being viewed

P: n/a
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.

Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
=?Utf-8?B?SklNLkgu?= <JI**@discussions.microsoft.com> wrote in
news:20**********************************@microsof t.com:
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.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2

P: n/a
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.

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:20**********************************@microsof t.com...
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.

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.