473,320 Members | 1,828 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,320 software developers and data experts.

Page p = new Page();

i will post on the bad ng... :

hello,
i want create a aspx object page for manipulate it.

like :
Page p = new Page();
p.LoadPage("~/mypage.aspx");
and after i can modify manually all control, header etc.. and save it.

how do ?

thancks
Nov 8 '07 #1
4 990
"Steph" <st***@pipoland.comwrote in message
news:47**********************@news.orange.fr...
i will post on the bad ng... :

hello,
i want create a aspx object page for manipulate it.

like :
Page p = new Page();
p.LoadPage("~/mypage.aspx");
and after i can modify manually all control, header etc.. and save it.

how do ?
aspx isn't script like asp. The aspx ultimately compilies a class in to an
assembly.
It would be this class you would need to instantiate. However even that
would be useless without a HttpContext object to pass to it.

The only way to get a HttpContext object would be as part of a web server
request.

--
Anthony Jones - MVP ASP/ASP.NET
Nov 8 '07 #2
You can do this at the HTTP Handler level, but then you are essentially
rewriting the server. A better method would be to use the MVC pattern and
instantiate bits as you need them. There are plenty of articles on this type
of programming.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"Steph" <st***@pipoland.comwrote in message
news:47**********************@news.orange.fr...
>i will post on the bad ng... :

hello,
i want create a aspx object page for manipulate it.

like :
Page p = new Page();
p.LoadPage("~/mypage.aspx");
and after i can modify manually all control, header etc.. and save it.

how do ?

thancks

Nov 8 '07 #3
Perhaps this is along the lines of what you are looking for?

http://aspalliance.com/236_NET_Scree...ing_in_depth.1

--
Robert Dunlop
----------------
http://www.directxzone.org
http://rdunlop.spaces.live.com/
Microsoft DirectX MVP 1998-2006
"Steph" <st***@pipoland.comwrote in message
news:47**********************@news.orange.fr...
>i will post on the bad ng... :

hello,
i want create a aspx object page for manipulate it.

like :
Page p = new Page();
p.LoadPage("~/mypage.aspx");
and after i can modify manually all control, header etc.. and save it.

how do ?

thancks
Nov 8 '07 #4
hello,
in fact, it is a page aspx upload and just after getting the tmp file i
want "parse" all control for adding/removing Controls etc...
Page p = new Page();
p.LoadPage("~/mypage.aspx");
Label l = p.FindControl("foo") as Label;
....

Anthony Jones wrote:
"Steph" <st***@pipoland.comwrote in message
news:47**********************@news.orange.fr...
>i will post on the bad ng... :

hello,
i want create a aspx object page for manipulate it.

like :
Page p = new Page();
p.LoadPage("~/mypage.aspx");
and after i can modify manually all control, header etc.. and save it.

how do ?

aspx isn't script like asp. The aspx ultimately compilies a class in to an
assembly.
It would be this class you would need to instantiate. However even that
would be useless without a HttpContext object to pass to it.

The only way to get a HttpContext object would be as part of a web server
request.
Nov 14 '07 #5

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

Similar topics

0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
4
by: Kevin Phifer | last post by:
Ok, before anyone freaks out, I have a solution I need to create that gathers content from maybe different places. Each one can return a <form> in the html, so its the classic can't have more than...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
6
by: MooreSmnith | last post by:
When I navigate to the next page using Response.Rediect("MyNextPage.aspx") current page Page_Load event is called. What I may wrongly understood is that post back will happen whenever there is any...
6
by: kresimirt | last post by:
Hi, I am trying to enhance the functionality of my web site which is hard with my limited knowledge of web developing. The idea is the following: On the main web page there is a show_hide script...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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)...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.