473,473 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Dynamic "Response / HTML Content" without an ASPX -Endpoint

hi

several general webpages (more or less static, e.g. errorpage,
timeoutpage etc.) i need in all kind of asp.net-applications.

instead of copy this pages (the *.aspx or *.html) into every
project explicit, i'd like to consolidate them into a single dll,
which i can reference and use in every asp.net-application.
- that's the idea....

now, i'm searching for ideas howto realize this...

i could imagine the following solution:

implement "front-controller" (httpmodule or httphandler) which
intercept the incoming requests. predefined adresses (e.g. error.aspx)
are filtered and not further forwarded. instead, the appropriate
response-stream will be send to the client. as long as the
response-content is static, it could be included in the assembly
(=front controller) via an embedded resource.

what do you think about? alternatives? ideas? solutions?

second question:

is it possible to create a page (system.web.ui.page) on the fly
(page.controls.add etc.) an send this page back to the client
pseudo code --> response.write(myPage.ToHTMLString());

this could be usefull e.g. in application_error event in global.asax,
if you won't redirect to a separate aspx-file.

thanks
pat
Nov 18 '05 #1
0 1329

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

Similar topics

28
by: petermichaux | last post by:
Hi, On my computer apache will see php in .php documents but not in .html documents. Can I configure apache to see php in .html documents? Or is this something that cannot be done at all? ...
1
by: Sugapablo | last post by:
In the following file below, I want it to return itself as a Rich Text Format file that populates the variables with data from the database. I set up the mime types and the filename accordingly....
3
by: Aaron Gervais | last post by:
I am brand-new to javascript, but after reading some tutorials online I was able to make a dynamic HTML photo gallery in javascript. It works fine in all browsers except IE6 (big surprise). I've...
2
by: RobertHillEDS | last post by:
While using the Soap generated ASP code, I would like to dump the raw contents of the request and response objects using Response.AppendToLog. I have tried using variations of the following code,...
3
by: Blue Streak | last post by:
Hello, Folks! I am trying to create dynamic content for an IFrame object within an ASPX page. I did not want to try and pull its content from another page. Previously in ASP.Classic I would use...
11
by: Trapulo | last post by:
I've this statement in my output's creation: Response.Clear() Response.ContentType = "application/vnd.google-earth.kml+xml kml" Response.AddHeader("Content-Disposition", "inline;...
0
by: DaveOnSEN | last post by:
Hi, Here's what I'd like to do: I'd like it so that I can have a web page where the page is a wrapper of some body text in the center of the page, which is populated by a database dip. In...
0
by: Mark Rae | last post by:
Hi all, Seems we've had a bit of a glut of posts relating to dynamic HTML lately (checkboxes in grids etc), so I thought I'd give a plug to this: ...
3
by: Alexander Smirnov | last post by:
I'm developing asp.net 2 web application and need to make a custom http handler which sometime must send response with "204 No Content" code. I set HttpResponse.Status="204 No Content"; But asp...
14
by: asdf | last post by:
I have a python script whose output i want to dynamically display on a webpage which will be hosted using Apache. How do I do that? thanks
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
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,...
1
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
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,...
1
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: 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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.