473,406 Members | 2,954 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,406 software developers and data experts.

How to encode ASPX and ASCX files into DLL

Hello All,
Would someone be able to tell me whether it is possible to encode an ASPX
page or an ASCX user control into a DLL and later have the webapplication
get the page out to the requesting client.
Thanks.
Nov 17 '05 #1
3 2073
Hi,

If you mean encode the page to HTML and save it ...

Basically its possible. But I cant get why you need to do so, you can
use OutputCache to do it for you.

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2
I am actually looking to compile the aspx or the ascx file into a DLL and
then having the application dynamically create the controls that are
specified in these files when the stored aspx/ascx file is actually being
requested. (I wonder if there exist a technique similar to that of storing
images into the DLL and then dynamically retrieving the images as the web
client requests it.).

The reasoning behind doing things this way is to prevent the user from
modifying/tampering with the aspx/ascx files.

I don't know if I would need to tap into the functionality of the aspx
parser in the asp.net ISAPI extension. Perhaps I can have access to the
generated control objects specified in the webform after the parser has
completed the parse process.

Thanks.
"Natty Gur" <na***@dao2com.com> wrote in message
news:eT**************@TK2MSFTNGP10.phx.gbl...
Hi,

If you mean encode the page to HTML and save it ...

Basically its possible. But I cant get why you need to do so, you can
use OutputCache to do it for you.

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #3
bu*****@rogers.com wrote:
I am actually looking to compile the aspx or the ascx file into a DLL and
then having the application dynamically create the controls that are
specified in these files when the stored aspx/ascx file is actually being
requested. (I wonder if there exist a technique similar to that of storing
images into the DLL and then dynamically retrieving the images as the web
client requests it.).

The reasoning behind doing things this way is to prevent the user from
modifying/tampering with the aspx/ascx files.

ASP.NET in Whidbey will fully support that model; however it won't be
available for production use for a while.

In the meantime, if you specify Debug='true' in the @Page directive for
the .aspx page, the parsed C# (or VB.NET) source remains available in
the temporary directory. You could pull that source file out of there,
and compile it yourself.

I'm sure there's a better way of doing this, probably by using some
undocumented classes in the framework, but this might be a n easy way
for you to experiment while you're figuring out a better method.
I don't know if I would need to tap into the functionality of the aspx
parser in the asp.net ISAPI extension. Perhaps I can have access to the
generated control objects specified in the webform after the parser has
completed the parse process.

Thanks.
"Natty Gur" <na***@dao2com.com> wrote in message
news:eT**************@TK2MSFTNGP10.phx.gbl...
Hi,

If you mean encode the page to HTML and save it ...

Basically its possible. But I cant get why you need to do so, you can
use OutputCache to do it for you.

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



--
mikeb

Nov 17 '05 #4

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

Similar topics

2
by: Stephen | last post by:
I need some help with this. I have two files page.aspx: A page that a user calls uc.ascx: A user control that page.aspx uses. The ascx file has HTML used for a site background which would...
4
by: BH | last post by:
I'm looking at the source code of the ASP.NET forum sample application. It has the "code-behind" classes compiled into a separate DLL, totally separated from the aspx/ascx files. Adding the class...
7
by: Holger (David) Wagner | last post by:
Hi Group, I've searched the Web for precompilers that compile ASPX/ASCX pages just like it can be done with JSPs, but so far, I've only found approaches targetted at increasing the performance....
3
by: thedebugger | last post by:
Dear Friends, I am working on website application in c# with asp.net. My practice using aspx files is, I have 1 main aspx files for inside pages. Whenever user hit the button like aboutus,...
4
by: Milsnips | last post by:
hi there, Can someone help me out with some example code (VB.NET) here that i need: i would like to programatically check my ASP.NET web application and return a list of all the ASPX and ASCX...
2
by: Ric | last post by:
im new to asp.net. from what i understand, you have the aspx file (presentation), user-control(ascx file), code-behind(vb file) and components(compiled vb and dll files). the aspx file contains a...
3
by: Paul | last post by:
I have a .aspx site. I have a header that I want on the entire site. So I made it a User Control ..ascx file. In this header, I make one SQL call, so I need to create all the connection objects,...
6
by: Martin Eyles | last post by:
Hi, I have a .aspx page which has a .ascx file included through the lines <%@ Register TagPrefix="aspcustom" TagName="menu" Src="Menu.ascx" %> and <aspcustom:menu id="Menu1"...
0
by: Nathan Sokalski | last post by:
I have several UserControls (*.ascx files) that I register in my Web.config file under the <system.web><pages><controlselement. If I mistype the src attribute in the Web.config file, the pages that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.