disable reading of asp pages

P

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
 
K

Kevin Spencer

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
 
K

Kevin Spencer

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
 
P

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?
 
K

Kevin Spencer

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
 
P

Patrice

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)...
 

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

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top