473,769 Members | 5,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1568
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******@discu ssions.microsof t.com> wrote in message
news:D7******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:D7******** *************** ***********@mic rosoft.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.publi c.dotnet.framew ork.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******@discu ssions.microsof t.com> wrote in message
news:D7******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:D7******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:6C******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:D7******** *************** ***********@mic rosoft.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
2408
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: http://localhost/index.asp?page=mypage&catid=20&articleid=15 Now, the first URL is submitted by the user. The second one is the real URL,
18
1887
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 and/or modify. I have heard that there are ways to protect our ASP code, but I don't know what they are. Could someone please list several options for me, and preferably places where I can do a little more research? Thanks, Jesse...
4
2060
by: Dave | last post by:
Hi, Is possible that memcpy can be used to hide const string value? D
6
2583
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, the address bar should look like http://localhost/webreadfile/. It should not show any page name. Thanks
5
3997
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 creating a new instance of the main form when returning to it but than my application is just creating more forms. How do I hide the main form and return back to it when exiting another form?
0
1213
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 services. · MABLE utilizes SOAP 1.2 protocol. · MABLE uses AXIS 1.4 as a web service transport. · MABLE support state-full conversations by implementing a conversation session.
3
6577
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 foo( char const ) {} };
3
2477
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 when I alert the properties they do show the correctly changed status, but the screen doesn't reflect that. It maybe a bug in the Flash player for Safari (I'm using player 9.0) which is just ignoring that it's been hidden. Here is the...
12
1972
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 to hide each answer when the page loaded, but then made them individually appear/disappear when clicking the question? I'm after a solution that will degrade gracefully if a page doesn't
29
1765
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: <?php $sqlconnect=mysql_connect("localhost","hyperian_track","gsmtrack"); if(!$sqlconnect) die(mysql_error()); mysql_select_db("hyperian_track", $sqlconnect);
0
9586
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
9423
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
10210
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
10043
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9990
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7406
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
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
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.