473,513 Members | 2,736 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Requsting another page.

Hi guys,

i'm stuck in very odd situation here, the problem is i need to ask one
aspx page to give me data from another aspx page. the flow in like
this:

Page1_load()
{
string value=requstPage2();
processvalue(value);

displayValue();

}

here the Page2 is one aspx page that returns xml data. that i need to
catch in the page1's load event and after processing it i need to
display the value.

honestly i dont know how to do this. how to requset another page from
the page without moving to page2 and get the xml data generated by the
page2 and process it.

can anyone tell me how can i requset page2 without leaving page1?

i would appriciate any help.

thanks,
Lucky

Feb 19 '07 #1
3 1172
I believe WebRequest and webresponse classes will solve this.
On Feb 19, 2:33 pm, "Lucky" <tushar.n.pa...@gmail.comwrote:
Hi guys,

i'm stuck in very odd situation here, the problem is i need to ask one
aspx page to give me data from another aspx page. the flow in like
this:

Page1_load()
{
string value=requstPage2();
processvalue(value);

displayValue();

}

here the Page2 is one aspx page that returns xml data. that i need to
catch in the page1's load event and after processing it i need to
display the value.

honestly i dont know how to do this. how to requset another page from
the page without moving to page2 and get the xml data generated by the
page2 and process it.

can anyone tell me how can i requset page2 without leaving page1?

i would appriciate any help.

thanks,
Lucky

Feb 19 '07 #2
You could use server.execute, store your xml in the session or app object
and stuff it into value, as execute doesn't return a value......or simply do
a get request using the net classes.

--
--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Lucky" <tu************@gmail.comwrote in message
news:11********************@v45g2000cwv.googlegrou ps.com...
Hi guys,

i'm stuck in very odd situation here, the problem is i need to ask one
aspx page to give me data from another aspx page. the flow in like
this:

Page1_load()
{
string value=requstPage2();
processvalue(value);

displayValue();

}

here the Page2 is one aspx page that returns xml data. that i need to
catch in the page1's load event and after processing it i need to
display the value.

honestly i dont know how to do this. how to requset another page from
the page without moving to page2 and get the xml data generated by the
page2 and process it.

can anyone tell me how can i requset page2 without leaving page1?

i would appriciate any help.

thanks,
Lucky

Feb 19 '07 #3
On Feb 19, 2:49 pm, "John Timney \(MVP\)"
<x_j...@timney.eclipse.co.ukwrote:
You could use server.execute, store your xml in the session or app object
and stuff it into value, as execute doesn't return a value......or simply do
a get request using the net classes.

--
--
Regards

John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog

"Lucky" <tushar.n.pa...@gmail.comwrote in message

news:11********************@v45g2000cwv.googlegrou ps.com...
Hi guys,
i'm stuck in very odd situation here, the problem is i need to ask one
aspx page to give me data from another aspx page. the flow in like
this:
Page1_load()
{
string value=requstPage2();
processvalue(value);
displayValue();
}
here the Page2 is one aspx page that returns xml data. that i need to
catch in the page1's load event and after processing it i need to
display the value.
honestly i dont know how to do this. how to requset another page from
the page without moving to page2 and get the xml data generated by the
page2 and process it.
can anyone tell me how can i requset page2 without leaving page1?
i would appriciate any help.
thanks,
Lucky- Hide quoted text -

- Show quoted text -
I tend to find that when I just use server.execute that I get page I
executed appearing back in the page I called Server.execute from.
If I just want a page to run and don't want the output I will over
ride the render
protected override void Render(HtmlTextWriter writer)
I had a case where I wanted to email a page, but not see it on the
screen.
However if I need the data from the page I will do something similar
to the following
StringBuilder sb = new StringBuilder();
StringWriter stw = new StringWriter(sb);
Server.Execute("TestPage.aspx",stw);
sb now has the data from TestPage.aspx

Feb 19 '07 #4

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

Similar topics

1
4178
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
0
2406
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 ...
2
4327
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page has expired". It doesn't display the page. I've...
4
2792
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
3606
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
2938
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...
1
2258
by: Lenard Gunda | last post by:
Hi! I have the following problem. From my main page, when someone clicks a button, it uses client side javascript to open another .aspx page. This page displays content, based on what the...
5
2757
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
7
23321
by: UJ | last post by:
I've got a page with a user control on it. While the page is loading, it needs to check certain conditions of the user object to enable/disable things on the screen. Currently in the page_load of...
0
7373
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,...
0
7432
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...
0
7519
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...
0
5677
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,...
0
4743
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
3230
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...
0
1585
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
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
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.