Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / June 2004

Tip: Looking for answers? Try searching our database.

dll from aspx

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ven - 31 May 2004 22:54 GMT
hello

i`m making a web service based on .net..... i use web matrix to make pages
and code in vbscript... my web pages have .aspx extension and everybody who
have access to server may read my code from this files.... maybe there is
somethin to make a dll or ??? from aspx files that allow to hide my code
from other people ???

thanks

VEN
Dino Chiesa [Microsoft] - 01 Jun 2004 21:12 GMT
If you have aspx then it is not webservices you are building.  it is web
pages (web forms) .

To hide your code,  you can make an ASPX like this:
<%@ Page Language="C#"
Inherits="HideCodePage"
Debug="true"
Trace="false"
%>

And then define the class denoted by "Inherits=" like this:

using System;
public class HideCodePage : System.Web.UI.Page {
 private void Page_Load(object sender, System.EventArgs e) {
     Trace.Write(">> hidecode.cs: Page_Load()");
     Response.Write("\nHello, from hidecode.<br/>");
     Response.Write("\nIt is now <font size='+1' color='blue'>" +
System.DateTime.Now + "</font><br/>\n");
 }
}

Compile the above into a DLL, and install it into the webapp's bin
directory.

But this won't completely solve the problem.  Assemblies can be decompiled.
All this would do is make it a little more difficult to view the code.

-Dino

> hello
>
[quoted text clipped - 7 lines]
>
> VEN

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.