473,466 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASPX compilation and loading question

KN
Hello,

Is it possible to provide the .aspx mark up to the buildmanager from a
resource for compilation and load it whithout having the .aspx file in the
virtual folder?

Since, the registered HTTP module is being executed before the .aspx page is
compiled I was thinking it should be possible, but I can't seem to find a way.

I was able to create the .aspx file physically using the
System.IO.Streamwriter and it worked fine. But is it possible to do it
without creating the file?

KN
Mar 17 '06 #1
2 1137
only javascript.net supports in memory compilation, the rest of the
compilers need a disk file. the in memory inteface to the other compilers
just writes the code to disk first.

-- bruce (sqlwork.com)
"KN" <KN@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
Hello,

Is it possible to provide the .aspx mark up to the buildmanager from a
resource for compilation and load it whithout having the .aspx file in the
virtual folder?

Since, the registered HTTP module is being executed before the .aspx page
is
compiled I was thinking it should be possible, but I can't seem to find a
way.

I was able to create the .aspx file physically using the
System.IO.Streamwriter and it worked fine. But is it possible to do it
without creating the file?

KN

Mar 17 '06 #2
KN
It would be nice to have a way to provide the .aspx file via a stream from a
resource or some other source other than a file. That way we can create a
full library without the aspx stubs.

The solution I have now is to create a derived class from the pagehandler
class register it in the web.config file for the individual aspx page that is
in the resource. Create the file during runtime and delete it after it is
compiled (not decided if I want to delete the file).

Any issues using this approach?

KN

"Bruce Barker" wrote:
only javascript.net supports in memory compilation, the rest of the
compilers need a disk file. the in memory inteface to the other compilers
just writes the code to disk first.

-- bruce (sqlwork.com)
"KN" <KN@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
Hello,

Is it possible to provide the .aspx mark up to the buildmanager from a
resource for compilation and load it whithout having the .aspx file in the
virtual folder?

Since, the registered HTTP module is being executed before the .aspx page
is
compiled I was thinking it should be possible, but I can't seem to find a
way.

I was able to create the .aspx file physically using the
System.IO.Streamwriter and it worked fine. But is it possible to do it
without creating the file?

KN


Mar 18 '06 #3

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

Similar topics

10
by: Kristoffer Arfvidson | last post by:
In my server I notice a small delay of about 2 seconds before it starts processing aspx documents... Because I have first off an standard asp page, witch contains the frameset and title and so...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
6
by: Plat | last post by:
I've Googled this for a while, to no avail. Hopefully someone can help me. Maybe I'm using the wrong terminology. Here's the scoop! Let's say I've got a simple *.ASPX page that has a syntax...
3
by: Christopher Baldwin | last post by:
Hello, Using ASP.NET v2.0.40607.42, I'm attempting to create a new file extension that should be handled exactly like "aspx" pages. For example, I just want to rename an aspx page from...
7
by: Steve Bugden | last post by:
Hi, I am trying to reference an html page from an aspx file. The intention is that the html file will contain the content for my web site and the aspx will contain the navigation, logo etc. Then...
2
by: Praveen Ramesh | last post by:
Hi, Is there some kind of support for "Conditional Compilation Directives" in the aspx file? I want to enclose the Register tag as follows: #if DOTNET10 <%@ Register TagPrefix="sfwg"...
10
by: bienwell | last post by:
Hi, I have a question about file included in ASP.NET. I have a file that includes all the Sub functions (e.g FileFunct.vb). One of the functions in this file is : Sub TestFunct(ByVal...
1
by: Anders Borum | last post by:
Hello! I was wondering if I am the only person missing the option of outputting a single dll for a website (just like the good old v1.1 compilation model)? What I'm looking for is the ASP.NET...
0
by: Stimp | last post by:
I've created an aspx page called HistoryManage.aspx. The page works fine on my local machine but when I load it off the web I get the following strange error... Compilation Error...
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
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
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,...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.