Hi,
Is it possible to pass execution to a view (aspx file), let it do its job,
and then capture the output? I want to achieve something like this during a
HttpRequest:
1. Invoke the controller to process the request
2. Start building the page by doing the following:
A: Read a template file
B: For each required view read from the template file, invoke the view
and let it render, then put its output into the template
C: Do B for all views required
D: Return the final output to the client
I also need controls to be usable from the code-behind pages of a view. Is
this possible or is there a much better, more elegant way of doing this?
Cheers,
Nick. 2 1055
You can call the RenderControl method of the control to get the HTML output.
Here's more info: http://msdn.microsoft.com/library/de...ntroltopic.asp http://aspnet.4guysfromrolla.com/articles/091102-1.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Nick" <fr**@here.ther e> wrote in message
news:uE******** ******@TK2MSFTN GP10.phx.gbl... Hi,
Is it possible to pass execution to a view (aspx file), let it do its job, and then capture the output? I want to achieve something like this during
a HttpRequest:
1. Invoke the controller to process the request 2. Start building the page by doing the following: A: Read a template file B: For each required view read from the template file, invoke the view and let it render, then put its output into the template C: Do B for all views required D: Return the final output to the client
I also need controls to be usable from the code-behind pages of a view.
Is this possible or is there a much better, more elegant way of doing this?
Cheers,
Nick.
Hi Steve,
I was trying RenderControl but it didnt seem to write anything...I will take
a look at those links, thanks a lot.
Nick.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:ut******** ******@TK2MSFTN GP10.phx.gbl... You can call the RenderControl method of the control to get the HTML
output. Here's more info: http://msdn.microsoft.com/library/de...ntroltopic.asp http://aspnet.4guysfromrolla.com/articles/091102-1.aspx
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Nick" <fr**@here.ther e> wrote in message news:uE******** ******@TK2MSFTN GP10.phx.gbl... Hi,
Is it possible to pass execution to a view (aspx file), let it do its
job, and then capture the output? I want to achieve something like this
during a HttpRequest:
1. Invoke the controller to process the request 2. Start building the page by doing the following: A: Read a template file B: For each required view read from the template file, invoke the
view and let it render, then put its output into the template C: Do B for all views required D: Return the final output to the client
I also need controls to be usable from the code-behind pages of a view. Is this possible or is there a much better, more elegant way of doing this?
Cheers,
Nick.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: peter |
last post by:
Hello,
If I have a PhP code below in a linux+apache environment,
==============================
<?php>
the first php block code
<?>
The HTML code goes here
|
by: tfs |
last post by:
I thought that objects are not rendered until the Page_PreRender
event?
I have a textbox object and when I do a trace.warn(object.text) in the
Page Init event - it has the correct text?
I would have thought I wouldn't get the correct data until
Page_PreRender.
How come?
|
by: Stu |
last post by:
Hi,
I am working on a CMS that uses html templates with placeholder strings for
the content (eg: %%Content%%). I want to get the web control working on
a blank page. Then intercept the page as it is being rendered to the browser
and place the template around the output.
How do I intercept and change the html as it is being rendered to teh
browser?
|
by: |
last post by:
ASP.NET is a kind of "engine" that takes declarative markup and code and
renders these instructions into presentational forms. And every page is a
class.
With that in mind I'm wondering,
a) how to intercept the rendered output and do further programmatic things
with it;
and
b) how coarse or finely grained the control might be. One could envision the
|
by: Stu |
last post by:
Hi,
I am trying to grab the page output so I can do some html processing before
the page is sent to the browser.
I found a post somewhere which suggests that this would grab the page
content immediately before it is sent to the browser. I have added this to
the page but the sub is not called.
Does anyone know how to get this going?
| |
by: aaa |
last post by:
Is there a simple straight forward tool out there for intercepting my SOAP
requests so that I can debug the XML that I am sending?
|
by: Randall Arnold |
last post by:
I know how to use MSHTML to grab the innerhtml from an html web page, but
what if I want to look at elements of a rendered aspx page? Is there any
way to do this using the MSHTML DOM object?
Thanks,
Randall Arnold
|
by: pamelafluente |
last post by:
I am new to asp.net.
I have an asp page with a submit button which sends out some
information.
Instead of having IIS to respond and deal with this information, I
would like to have a .NET program (for instance a .NET service, or even
a client .net application) which is able to intercept this call and
deal with the associate information. This middle application might
decide whether to send something to IIS or just do everything by itself...
|
by: Ray Booysen |
last post by:
Hi all
I have a report that opens as an ASP.net webform. I need to take this
output and create a PDF from it. Has anyone attempted this?
I originally planned to override the Render method of the page and get
the HTML that way. But I'm not sure on how to proceed. ;)
Kind Regards
Ray
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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...
|
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...
|
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...
|
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();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |