473,594 Members | 2,756 Online
Bytes | Software Development & Data Engineering Community
+ 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.ToHTMLSt ring());

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

thanks
pat
Nov 18 '05 #1
0 1344

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

Similar topics

28
1907
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? Thanks, Peter
1
3936
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. Now, when I call this page on a Linux system, using the Mozilla browser, it opens a dialog, asks me whether I want to save it or open it, and if I open it, opens it as test.rtf, just like I tell it to in the Content-Disposition header.
3
1904
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 been looking around online for solutions, but the fixes I have seen don't seem to work. I assume I am misunderstanding something... I was using element.setAttribute but have changed my code to avoid that. Here is an example. IE6 displays the link...
2
4087
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, but I may be barking up the wrong tree with this approach. Any expert help would greatly be appreciated. Dim objReader Set objReader = CreateObject("MSSOAP.SoapReader") objReader.Load Request
3
2754
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 a bunch of Response.Write commands that would spit out a buch of JavaScript code to populate the IFrame like: <IFrame name="ifrmTarget"> </IFrame> <% Response.Write "document.ifrmTarget.writeln('" ... "');" %> (I may be a little off on the...
11
15080
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; filename=Log_" & activityLogID & ".kml") The strage is that on my development server all works (IE try to open the
0
1179
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 other words, mypage.aspx?contentid=2 gets content ID 2 from the database and renders the page with that in the middle. Ok so far, so easy. Here's the tricky / fun part: I'd like it so that in the dynamic
0
1027
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: http://www.amazon.com/Dynamic-HTML-Definitive-Danny-Goodman/dp/0596527403/sr=8-1/qid=1165318775/ref=sr_1_1/104-8827749-5771100?ie=UTF8&s=books I really can't recommend it highly enough - it is, without doubt, the dynamic HTML bible.
3
7044
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 automatically adds headers such as "Content-Length: 0". This causes an error on the client. HttpResponse.ClearHeaders() doesn't help. How to make asp not to add headers (especially Content- Length)? Thanks in advance.
14
5398
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
7876
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
8251
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
8372
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
8003
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,...
0
8234
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6654
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5408
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3897
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2385
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 we have to send another system

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.