473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Hiding logic on localhost-based html/aspx ...

(I apologize in advance if this is an obvious question, my experience is more
with console or client-only apps)

I am trying to build an web-based HTML UI, which will work with a web-server
on the same machine (i.e., http://localhost/...). However, I do not want the
logic source to be visible to the user to prevent customer support problems,
intellectual property issues, etc. The requirements strictly call for a
web-based UI running initially on the same machine as the web-server for the
first several releases - otherwise I would just do a Windows app.

What is the best method of doing this? If I add C#/VB.NET scripting to an
ASPX page -- can I hide this scripting in some way (e.g., a compiled ASPX or
is there such a thing)? Or do I/can I create a C# class library, which is
callable from the ASPX page? Or is there even a better way?

One collegue has recommeded Cassini as a lite-weight solution -- will the
best solution work with Cassini or do I have to use IIS?

Thanks in advance for your replies.

--
Ted
Jul 22 '05 #1
6 1552
ASPX server-side code is not viewable to the client. this is inherent in
server-side frameworks like ASP and ASP.NET (and PHP, JSP, etc..)
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"Ted Singh" <Te******@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
(I apologize in advance if this is an obvious question, my experience is
more
with console or client-only apps)

I am trying to build an web-based HTML UI, which will work with a
web-server
on the same machine (i.e., http://localhost/...). However, I do not want
the
logic source to be visible to the user to prevent customer support
problems,
intellectual property issues, etc. The requirements strictly call for a
web-based UI running initially on the same machine as the web-server for
the
first several releases - otherwise I would just do a Windows app.

What is the best method of doing this? If I add C#/VB.NET scripting to an
ASPX page -- can I hide this scripting in some way (e.g., a compiled ASPX
or
is there such a thing)? Or do I/can I create a C# class library, which is
callable from the ASPX page? Or is there even a better way?

One collegue has recommeded Cassini as a lite-weight solution -- will the
best solution work with Cassini or do I have to use IIS?

Thanks in advance for your replies.

--
Ted

Jul 22 '05 #2
Thanks, but I knew that ASP code is not visible to the client, but since the
ASP file is on the same computer, the user could conceivably go look at the
logic if he knows where to look, right?

Ted

"Jason Brown [MSFT]" wrote:
ASPX server-side code is not viewable to the client. this is inherent in
server-side frameworks like ASP and ASP.NET (and PHP, JSP, etc..)
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"Ted Singh" <Te******@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
(I apologize in advance if this is an obvious question, my experience is
more
with console or client-only apps)

I am trying to build an web-based HTML UI, which will work with a
web-server
on the same machine (i.e., http://localhost/...). However, I do not want
the
logic source to be visible to the user to prevent customer support
problems,
intellectual property issues, etc. The requirements strictly call for a
web-based UI running initially on the same machine as the web-server for
the
first several releases - otherwise I would just do a Windows app.

What is the best method of doing this? If I add C#/VB.NET scripting to an
ASPX page -- can I hide this scripting in some way (e.g., a compiled ASPX
or
is there such a thing)? Or do I/can I create a C# class library, which is
callable from the ASPX page? Or is there even a better way?

One collegue has recommeded Cassini as a lite-weight solution -- will the
best solution work with Cassini or do I have to use IIS?

Thanks in advance for your replies.

--
Ted


Jul 22 '05 #3
To start:
There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-savvy person here who can
answer your question, you can eliminate the luck factor by posting your
question to a group where those dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.

To answer your question: yes, since the file exists on the user's machine,
there is no dependable way to prevent its source from being revealed. Even a
compiled dotnet application can be decompiled, even if you use the
obfuscator that comes with VS.Net.

So that deals with the server-side code issues.

If you have any logic in your client-side code, all bets are off. There is
absolutely no way to hide client-side code from end users, short of using
COM-based dll's (and even then, clever people are out there...).

Bob Barrows

Ted Singh wrote:
Thanks, but I knew that ASP code is not visible to the client, but
since the ASP file is on the same computer, the user could
conceivably go look at the logic if he knows where to look, right?

Ted

"Jason Brown [MSFT]" wrote:
ASPX server-side code is not viewable to the client. this is
inherent in server-side frameworks like ASP and ASP.NET (and PHP,
JSP, etc..)
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"Ted Singh" <Te******@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
(I apologize in advance if this is an obvious question, my
experience is more
with console or client-only apps)

I am trying to build an web-based HTML UI, which will work with a
web-server
on the same machine (i.e., http://localhost/...). However, I do not
want the
logic source to be visible to the user to prevent customer support
problems,
intellectual property issues, etc. The requirements strictly call
for a web-based UI running initially on the same machine as the
web-server for the
first several releases - otherwise I would just do a Windows app.

What is the best method of doing this? If I add C#/VB.NET scripting
to an ASPX page -- can I hide this scripting in some way (e.g., a
compiled ASPX or
is there such a thing)? Or do I/can I create a C# class library,
which is callable from the ASPX page? Or is there even a better way?

One collegue has recommeded Cassini as a lite-weight solution --
will the best solution work with Cassini or do I have to use IIS?

Thanks in advance for your replies.

--
Ted


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #4
If you have control over the systems, you could set the NTFS Permissions to
the IIS folders to restrict access to only the web service.

TomB

"Ted Singh" <Te******@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
(I apologize in advance if this is an obvious question, my experience is more with console or client-only apps)

I am trying to build an web-based HTML UI, which will work with a web-server on the same machine (i.e., http://localhost/...). However, I do not want the logic source to be visible to the user to prevent customer support problems, intellectual property issues, etc. The requirements strictly call for a
web-based UI running initially on the same machine as the web-server for the first several releases - otherwise I would just do a Windows app.

What is the best method of doing this? If I add C#/VB.NET scripting to an
ASPX page -- can I hide this scripting in some way (e.g., a compiled ASPX or is there such a thing)? Or do I/can I create a C# class library, which is
callable from the ASPX page? Or is there even a better way?

One collegue has recommeded Cassini as a lite-weight solution -- will the
best solution work with Cassini or do I have to use IIS?

Thanks in advance for your replies.

--
Ted

Jul 22 '05 #5
Ted Singh wrote:
(I apologize in advance if this is an obvious question, my experience is more
with console or client-only apps)

I am trying to build an web-based HTML UI, which will work with a web-server
on the same machine (i.e., http://localhost/...). However, I do not want the
logic source to be visible to the user to prevent customer support problems,
intellectual property issues, etc. The requirements strictly call for a
web-based UI running initially on the same machine as the web-server for the
first several releases - otherwise I would just do a Windows app.

What is the best method of doing this? If I add C#/VB.NET scripting to an
ASPX page -- can I hide this scripting in some way (e.g., a compiled ASPX or
is there such a thing)? Or do I/can I create a C# class library, which is
callable from the ASPX page? Or is there even a better way?

One collegue has recommeded Cassini as a lite-weight solution -- will the
best solution work with Cassini or do I have to use IIS?

Thanks in advance for your replies.

IIRC, Cassini is the sample web server that comes free with Microsoft's
WebMatrix ASP.Net authoring tool (also free). Deploying applications to
it is not recommended. It has no security, authentication,
authorisation etc, etc. That rather leaves you with IIS.

P
Jul 22 '05 #6
Ah, right. I see what you mean. yes, this is true. you could use the MS
Script encoder, in classic ASP or you could compile your ASP.NET logic into
DLLs, but this is not a strong solution. is there a particular reason you're
doing this as a web-based UI on the local machine when a windows forms UI
would probably give you more power?
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"Ted Singh" <Te******@discussions.microsoft.com> wrote in message
news:6C**********************************@microsof t.com...
Thanks, but I knew that ASP code is not visible to the client, but since
the
ASP file is on the same computer, the user could conceivably go look at
the
logic if he knows where to look, right?

Ted

"Jason Brown [MSFT]" wrote:
ASPX server-side code is not viewable to the client. this is inherent in
server-side frameworks like ASP and ASP.NET (and PHP, JSP, etc..)
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"Ted Singh" <Te******@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
> (I apologize in advance if this is an obvious question, my experience
> is
> more
> with console or client-only apps)
>
> I am trying to build an web-based HTML UI, which will work with a
> web-server
> on the same machine (i.e., http://localhost/...). However, I do not
> want
> the
> logic source to be visible to the user to prevent customer support
> problems,
> intellectual property issues, etc. The requirements strictly call for a
> web-based UI running initially on the same machine as the web-server
> for
> the
> first several releases - otherwise I would just do a Windows app.
>
> What is the best method of doing this? If I add C#/VB.NET scripting to
> an
> ASPX page -- can I hide this scripting in some way (e.g., a compiled
> ASPX
> or
> is there such a thing)? Or do I/can I create a C# class library, which
> is
> callable from the ASPX page? Or is there even a better way?
>
> One collegue has recommeded Cassini as a lite-weight solution -- will
> the
> best solution work with Cassini or do I have to use IIS?
>
> Thanks in advance for your replies.
>
> --
> Ted


Jul 22 '05 #7

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

Similar topics

2
by: Karim Dahdah | last post by:
Hi everybody, I'm looking for a solution for the following problem: I created ASP code to convert an URL such as: http://localhost/mypage/category_20/article_15/ into the following URL:...
18
by: Anchorman | last post by:
We have a customer that wants us to put our ASP application on their server, so they can have direct access to the database. However, we don't want to leave our code wide open for them to copy...
4
by: Dave | last post by:
Hi, Is possible that memcpy can be used to hide const string value? D
6
by: Mustufa Baig | last post by:
Hi, I don't want to show the web page name shown in the address bar. For example if the website address is http://localhost/webreadfile/ so from this point forward, no matter which pages I surf,...
5
by: Ivan | last post by:
I am used to VB6 and am not sure how to do this in Vstudio .NET. I have a main form which calls other forms. I want to disable that main form while other ones are called. I tried hiding it and...
0
by: Al Fatykhov | last post by:
Using MABLE logic engine with existing .NET applications. MABLE web services provide an interface to MABLE business objects and logic. Let us review some technical details of the MABLE web...
3
by: Nicolas Castagne | last post by:
Hi all, I have been wondering for a while why function hiding (in a derived class) exists in C++, e.g. why when writing class Base { void foo( int ) {} }; class Derived: public Base { void...
3
by: dd | last post by:
Hi, I have some code that hides all Flash objects on a page. It's working fine on IE and Gecko but doesn't work on Safari. There are no errors (shown in the console) when it runs on Safari, and...
12
by: Ste | last post by:
Hi there, I've got a website with a list of Frequently Asked Questions, so there's a question and answer in a long list down the page. Can anyone recommend a simple script that would allow me...
29
by: Rocky86 | last post by:
need help with this code currently I understand abit of what this code is doing but I need to make use of the same logic to send my data to actionscripts so how do I do it? This is the code logic:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.