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

Cross Post Pages from Code Behind File

Trying to figure out how to do a cross post page within the code
behind file. I need to do some calculations before I send a string
value to another pages. Here is an example of the concept I would
like to achieve.

Lets start with 2 pages, page1.aspx has the text boxes and page2 is
where I want to display the informaiton.

Page1.aspx

textBox1.text = "John"

textBox 2.text = "Smith"

In my page1.aspx.vb page I have something like

Dim full as string
full = textBox1.text & " " & textBox2.text

Dim url as string = http://localhost/page2.aspx

Page.Response.Redirect(Url)
On page2.aspx all I want to do is display "full" on the page.

Your Full Name: "full"

I have looked at the page.previous.findcontrol but since this is all
done within the code behind file I don't have a control. I need to
beable to instead of findcontrol findvariable("full"), but don't know
how to accomplish that.

Nov 7 '07 #1
4 1899
If you can use Server.Transfer("page2.aspx"); instead off
response.redirect(.....

Dim full as string
full = textBox1.text & " " & textBox2.text
Context.Items.Add("full", full)

Server.Transfer("page2.aspx")

On page2.aspx.

Dim full as string

full = Context.Items("full").ToString()

Response.Write(full) ' etc...



"CSINVA" <mc*************@yahoo.comwrote in message
news:11**********************@o3g2000hsb.googlegro ups.com...
Trying to figure out how to do a cross post page within the code
behind file. I need to do some calculations before I send a string
value to another pages. Here is an example of the concept I would
like to achieve.

Lets start with 2 pages, page1.aspx has the text boxes and page2 is
where I want to display the informaiton.

Page1.aspx

textBox1.text = "John"

textBox 2.text = "Smith"

In my page1.aspx.vb page I have something like

Dim full as string
full = textBox1.text & " " & textBox2.text

Dim url as string = http://localhost/page2.aspx

Page.Response.Redirect(Url)
On page2.aspx all I want to do is display "full" on the page.

Your Full Name: "full"

I have looked at the page.previous.findcontrol but since this is all
done within the code behind file I don't have a control. I need to
beable to instead of findcontrol findvariable("full"), but don't know
how to accomplish that.

Nov 7 '07 #2
On Nov 7, 1:00 pm, "IfThenElse" <sql_agent...@hotmail.comwrote:
If you can use Server.Transfer("page2.aspx"); instead off
response.redirect(.....

Dim full as string
full = textBox1.text & " " & textBox2.text
Context.Items.Add("full", full)

Server.Transfer("page2.aspx")

On page2.aspx.

Dim full as string

full = Context.Items("full").ToString()

Response.Write(full) ' etc...

"CSINVA" <mcse_instruc...@yahoo.comwrote in message

news:11**********************@o3g2000hsb.googlegro ups.com...
Trying to figure out how to do a cross post page within the code
behind file. I need to do some calculations before I send a string
value to another pages. Here is an example of the concept I would
like to achieve.
Lets start with 2 pages, page1.aspx has the text boxes and page2 is
where I want to display the informaiton.
Page1.aspx
textBox1.text = "John"
textBox 2.text = "Smith"
In my page1.aspx.vb page I have something like
Dim full as string
full = textBox1.text & " " & textBox2.text
Dim url as string =http://localhost/page2.aspx
Page.Response.Redirect(Url)
On page2.aspx all I want to do is display "full" on the page.
Your Full Name: "full"
I have looked at the page.previous.findcontrol but since this is all
done within the code behind file I don't have a control. I need to
beable to instead of findcontrol findvariable("full"), but don't know
how to accomplish that.- Hide quoted text -

- Show quoted text -
Need it to be able to use it with browsers other than IE.

Nov 7 '07 #3
pass in URL string , Encrypted if you wish
you may pass it in cookie

Are you crossing domains or servers?

Server.Transfer can work for all browsers.
"CSINVA" <mc*************@yahoo.comwrote in message
news:11**********************@y42g2000hsy.googlegr oups.com...
On Nov 7, 1:00 pm, "IfThenElse" <sql_agent...@hotmail.comwrote:
>If you can use Server.Transfer("page2.aspx"); instead off
response.redirect(.....

Dim full as string
full = textBox1.text & " " & textBox2.text
Context.Items.Add("full", full)

Server.Transfer("page2.aspx")

On page2.aspx.

Dim full as string

full = Context.Items("full").ToString()

Response.Write(full) ' etc...

"CSINVA" <mcse_instruc...@yahoo.comwrote in message

news:11**********************@o3g2000hsb.googlegr oups.com...
Trying to figure out how to do a cross post page within the code
behind file. I need to do some calculations before I send a string
value to another pages. Here is an example of the concept I would
like to achieve.
Lets start with 2 pages, page1.aspx has the text boxes and page2 is
where I want to display the informaiton.
Page1.aspx
textBox1.text = "John"
textBox 2.text = "Smith"
In my page1.aspx.vb page I have something like
Dim full as string
full = textBox1.text & " " & textBox2.text
Dim url as string =http://localhost/page2.aspx
Page.Response.Redirect(Url)
On page2.aspx all I want to do is display "full" on the page.
Your Full Name: "full"
I have looked at the page.previous.findcontrol but since this is all
done within the code behind file I don't have a control. I need to
beable to instead of findcontrol findvariable("full"), but don't know
how to accomplish that.- Hide quoted text -

- Show quoted text -

Need it to be able to use it with browsers other than IE.

Nov 7 '07 #4
On Nov 7, 2:26 pm, "IfThenElse" <sql_agent...@hotmail.comwrote:
pass in URL string , Encrypted if you wish
you may pass it in cookie

Are you crossing domains or servers?

Server.Transfer can work for all browsers.

"CSINVA" <mcse_instruc...@yahoo.comwrote in message

news:11**********************@y42g2000hsy.googlegr oups.com...
On Nov 7, 1:00 pm, "IfThenElse" <sql_agent...@hotmail.comwrote:
If you can use Server.Transfer("page2.aspx"); instead off
response.redirect(.....
Dim full as string
full = textBox1.text & " " & textBox2.text
Context.Items.Add("full", full)
Server.Transfer("page2.aspx")
On page2.aspx.
Dim full as string
full = Context.Items("full").ToString()
Response.Write(full) ' etc...
"CSINVA" <mcse_instruc...@yahoo.comwrote in message
>news:11**********************@o3g2000hsb.googlegr oups.com...
Trying to figure out how to do a cross post page within the code
behind file. I need to do some calculations before I send a string
value to another pages. Here is an example of the concept I would
like to achieve.
Lets start with 2 pages, page1.aspx has the text boxes and page2 is
where I want to display the informaiton.
Page1.aspx
textBox1.text = "John"
textBox 2.text = "Smith"
In my page1.aspx.vb page I have something like
Dim full as string
full = textBox1.text & " " & textBox2.text
Dim url as string =http://localhost/page2.aspx
Page.Response.Redirect(Url)
On page2.aspx all I want to do is display "full" on the page.
Your Full Name: "full"
I have looked at the page.previous.findcontrol but since this is all
done within the code behind file I don't have a control. I need to
beable to instead of findcontrol findvariable("full"), but don't know
how to accomplish that.- Hide quoted text -
- Show quoted text -
Need it to be able to use it with browsers other than IE.- Hide quoted text -

- Show quoted text -
I was reading something else. The only problem is that I need for
page2 to look like it is coming from page2.aspx and not page1.

For instance. chris.mysite.com/page1.aspx send data to page2 -->
(response.redirect) www.mysite.com/page2. with full on the page.

I have to do it this way because I actually have page 2 just doing a
redirect to the "full" item in the example. And the receive site will
only accept connections from a specific site and web page. It's a
pain, but getting closer.



Nov 7 '07 #5

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

Similar topics

6
by: nospam | last post by:
I just read on Slash Dot about partial types. Now, is it possible to have a code behind split over two pages but still referencing the same .aspx file??? If so, that would be really nice as...
2
by: draganc | last post by:
Hello, I just want to test my application, and I want to upload it to www.brinkster.com server, but free host version does not support code behind pages. Can Visual Studio make both the code...
12
by: Assaf | last post by:
Hi all, My client is using an online service provider that processes survey responses. After a user fills survey.aspx and presses the OK button, 2 things need to happen: 1. the data has to...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
15
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE,...
9
by: Fat Elvis | last post by:
I'd like to extend some of my Asp.net pages by using Partial Classes. Example ASP.Net Page: public partial class Admin_Customer : System.Web.UI.Page { protected void Page_Load(object sender,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.