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

Rendering a new page without openning it in a Window - II

HVG
My previous post on this didnt quite find a solution, so can we try again
please?

My senario is that from the codebehind in "page1.aspx", I wish to render
"page2.aspx"
(ie. a totally a different page) to html.
I'm after something like:
...
dim p2 as new Page(page2.aspx) ' <--- how to do this?
p2.RenderControl(htmlWriter);
...

But I cant see how to open/load a new webform page into a Page object so it
can be rendered.
I dont want to open "page2.aspx" in a new window as it is not an elegant
solution (tho it works).

Thanks again in advance.
Hugo


Nov 17 '05 #1
2 1202
You can use Server.Execute("page2.aspx")

/Fredrik Normén NSQUARED2
http://www.nsquared2.net
-----Original Message-----
My previous post on this didnt quite find a solution, so can we try againplease?

My senario is that from the codebehind in "page1.aspx", I wish to render"page2.aspx"
(ie. a totally a different page) to html.
I'm after something like:
...
dim p2 as new Page(page2.aspx) ' <--- how to do this? p2.RenderControl(htmlWriter);
...

But I cant see how to open/load a new webform page into a Page object so itcan be rendered.
I dont want to open "page2.aspx" in a new window as it is not an elegantsolution (tho it works).

Thanks again in advance.
Hugo


.

Nov 17 '05 #2
HVG
I see now!
Thanks for the help,
Hugo

"Fredrik Normén NSQUARED2" <an*******@discussions.microsoft.com> wrote in
message news:06****************************@phx.gbl...
You can use Server.Execute("page2.aspx")

/Fredrik Normén NSQUARED2
http://www.nsquared2.net
-----Original Message-----
My previous post on this didnt quite find a solution, so can we try againplease?

My senario is that from the codebehind in "page1.aspx", I wish to render"page2.aspx"
(ie. a totally a different page) to html.
I'm after something like:
...
dim p2 as new Page(page2.aspx) ' <--- how to do this? p2.RenderControl(htmlWriter);
...

But I cant see how to open/load a new webform page into a Page object so itcan be rendered.
I dont want to open "page2.aspx" in a new window as it is not an elegantsolution (tho it works).

Thanks again in advance.
Hugo


.

Nov 17 '05 #3

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

Similar topics

5
by: Tedmond | last post by:
Dear all, How can I get all the titles of all openning windows? I found a API in win32 that called EnumWindows() but it returns only the windows handles, not titles. How can I get the list just...
4
by: HVG | last post by:
Hi, is it possible to render a whole page (ie. a aspx webform) to a string _without_ actually loading the page in a window? Eg if Iam executing page1.aspx at the server, I would then like to...
2
by: Mr. x | last post by:
Hello, I want to activate an aspx page from the client. just oppening the url from html page (client), ie openning the page with parameter : my_url.aspx?my_param=1 Thanks :)
5
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever....
4
by: tobfon | last post by:
I'm creating a scientific visualization application with rather high demands on performance. I've created a nice rendering engine for it in C++/OpenGL and a python interface to the rendering...
0
by: Jeff Morgan | last post by:
I have an application that runs on ASP.NET. We have been working through performance testing and it appears that at about 40-50 users, I start to get CPU bound. The application is a three form,...
2
by: Gamboz Matteo | last post by:
Hi all, I'm writing a widget that should enable the user to choose some item from a huge list that has a tree structure (~23000 items, node with max children = ~1600 kids (only 3 levels in the...
12
by: Boris Borcic | last post by:
Hello, I am trying to use UI Automation to drive an MS Windows app (with pywinauto). I need to scrape the app's window contents and use some form of OCR to get at the texts (pywinauto can't...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.