473,756 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

disable reading of asp pages

Piz
Hi all....
That's my question. I'm developing a web site in asp.net 2. This
website will run in the intranet of my customers.
Is there any way to block the reading of my aspx pages? In other words
I want that my customer can execute aspx pages but he shouldn't open
them for reading my code.

Someone could help me?? :)

many thanks
piz

Nov 20 '05 #1
6 1102
> I'm developing a web site in asp.net 2.
I want that my customer can execute aspx pages but he shouldn't open
them for reading my code.
I'm baffled, flummoxed, and stupefied. How on earth could you be developing
an ASP.Net web application and know almost nothing about ASP.Net?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Piz" <tw*******@yaho o.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. . Hi all....
That's my question. I'm developing a web site in asp.net 2. This
website will run in the intranet of my customers.
Is there any way to block the reading of my aspx pages? In other words
I want that my customer can execute aspx pages but he shouldn't open
them for reading my code.

Someone could help me?? :)

many thanks
piz

Nov 20 '05 #2
This is the "deployemen t pre-compilation" option. See :
http://msdn.microsoft.com/library/de.../Internals.asp
http://msdn2.microsoft.com/en-us/library/ms229863.aspx
or the VS.NET documentation.. .

--
Patrice

"Piz" <tw*******@yaho o.com> a écrit dans le message de
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Hi all....
That's my question. I'm developing a web site in asp.net 2. This
website will run in the intranet of my customers.
Is there any way to block the reading of my aspx pages? In other words
I want that my customer can execute aspx pages but he shouldn't open
them for reading my code.

Someone could help me?? :)

many thanks
piz

Nov 20 '05 #3
Okay, I've calmed down, given it some thought, and here's your answer:

Server-side code cannot be accessed by client browsers.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Piz" <tw*******@yaho o.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Hi all....
That's my question. I'm developing a web site in asp.net 2. This
website will run in the intranet of my customers.
Is there any way to block the reading of my aspx pages? In other words
I want that my customer can execute aspx pages but he shouldn't open
them for reading my code.

Someone could help me?? :)

many thanks
piz

Nov 20 '05 #4
Piz
maybe i didn't explained well my problem. The web application will run
in a intranet, so the web server will be a pc in that intranet. Not a
remote server. So anyone could open the aspx pages for reading code
directly from the web server folder. Have you understood?

Nov 20 '05 #5
I think so. Don't put your CodeBehind class code in the Page template, but
compile it into a DLL. If you do so, the CodeBehind page does not have to be
deployed; the Page Template will use the compiled DLL instead.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Piz" <tw*******@yaho o.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
maybe i didn't explained well my problem. The web application will run
in a intranet, so the web server will be a pc in that intranet. Not a
remote server. So anyone could open the aspx pages for reading code
directly from the web server folder. Have you understood?

Nov 20 '05 #6
Additionaly in 2.0, you have an option that allows to replace the content of
the ASPX pages by a stub that just calls the compiled DLLs. It allows to do
do the same for inline script (without having to move this code in a code
behind file) and even to prevent attempts to change the ASPX markup.

See my previous post for details (this is controlled by the aspnet_compiler
tool)...

--
Patrice

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> a écrit dans le message
de news:eD******** ********@TK2MSF TNGP12.phx.gbl. ..
I think so. Don't put your CodeBehind class code in the Page template, but
compile it into a DLL. If you do so, the CodeBehind page does not have to be deployed; the Page Template will use the compiled DLL instead.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Piz" <tw*******@yaho o.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
maybe i didn't explained well my problem. The web application will run
in a intranet, so the web server will be a pc in that intranet. Not a
remote server. So anyone could open the aspx pages for reading code
directly from the web server folder. Have you understood?


Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7803
by: AmigaLemming | last post by:
As I understand my admins installed a PHP server and now my plain HTML pages also want to set a PHPSESSID cookie when loaded into a browser. Can I suppress this, e.g. by creating a configuration file like ..htaccess somewhere in my public_html directory? Is it possible to disable the setting of PHPSESSID cookies for plain HTML pages in general and maybe for PHP pages that don't need to track any session information?
21
3258
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" http://www.tonymarston.co.uk/php-mysql/backbuttonblues.html -- Tony Marston http://www.tonymarston.net
4
11688
by: Phil | last post by:
Hello all, Can anybody give me any ideas on how to disable a tab page within a tab control. I have a tab control tabClients with 3 pages. I would like to disable pages 2 & 3 when a certain condition is met. Thanks in Advance. Phil.
6
2801
by: Raghu Raman | last post by:
Hi, we are doing an in house project in c#.net(asp.net).We wanted to close our application when ever the user presses the SIGNOUT button. Even though we programtically disconnects them from the database,when we press the Internet explorers Back button ,all the browsed pages are displayed with the data**. 1.could you pls tell me how to disable the back-button of IE
1
1789
by: Bob | last post by:
Does anyone know how to disable javascript in the new Netscape 8 -- for off line testing (like can be done readily with the current MSIE, Firefox or Opera browsers) ? When I try tools -> options -> site controls -> web features and check or uncheck the 'enable javascript' box, nothing changes -- it stays enabled. I've searched FAQs, archives and google about the issue, with no luck.
2
3572
by: ad | last post by:
I use authorization to Form in the root Web.config But now I want to disable the Form authentication when request some web pages How can I do?
56
3861
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content. Now i want to Disable ad Enable the menu items which are placed in the left frame for navigation purpose. Can any of you input me with any idea as how to proceed? If you need any other information then please let me know.
4
2290
by: =?Utf-8?B?TUNN?= | last post by:
I am trying to disable ViewState at the application level. I have the following line in my web.config: <pages enableViewState="false"></pages> But it is not working. What can I do?
8
5428
by: alamodgal | last post by:
hiiiiiiiiiii everybody, pls solve my problem if u can? Actualy what happens in my site when i press enter key it will show some secured information related to my site.So for that i have use this code to disable enter key: <script type="text/javascript" language="javascript"> /*-----script to disable F5 key begin-----*/ var version = navigator.appVersion; function...
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.