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

is there a way to do this...unsure about this concept

hey all,

i have a plain aspx page (page1) with 1 textbox on it, i hardcode sample
text in the textbox. i have 1 button and in the codebehind button click event
i response.redirect to page2.

i try to do a request.form("TextBox1") on page2.aspx and it doesn't have the
contents of the textbox on page1.

can someone please explain this concept to me and what i need to do to make
it work.

thanks,
rodchar
Nov 19 '05 #1
4 1023
rodchar wrote:
i have a plain aspx page (page1) with 1 textbox on it, i hardcode sample
text in the textbox. i have 1 button and in the codebehind button click event
i response.redirect to page2.

i try to do a request.form("TextBox1") on page2.aspx and it doesn't have the
contents of the textbox on page1.


Response.Redirect() doesn't send along any information from the sending
page to the receiving page. With Response.Redirect you can only send
along data through the querystring. So, from Page1 you could do:

Response.Redirect("Page2.aspx?TextBoxValue=" & TextBox1.Text)
And then in Page2.aspx you could do:

Dim tbValue as String = Request.QueryString("TextBoxValue")

hth

--

Scott Mitchell [ASP.NET MVP]
mi******@4GuysFromRolla.com
http://www.4GuysFromRolla.com/ScottMitchell
Nov 19 '05 #2
Doesent the Context.Handler allows you to access public properties on the
preceeding form even when using Response.Redirect. Im sure Ive done this
with code a bit similar to the following in the redirected to form. So lets
say we have form1 and form2 where form 2 is the one we redirect to.

so in form2 page_load event

'// Untested '//
If Not IsPostback then

dim f1 as Form1
f1 = Context.Handler.Form
response.write( f1.PublicPropertyForm1 )

End If


"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> wrote in message
news:Se*****************@newssvr27.news.prodigy.ne t...
rodchar wrote:
i have a plain aspx page (page1) with 1 textbox on it, i hardcode sample
text in the textbox. i have 1 button and in the codebehind button click
event i response.redirect to page2.

i try to do a request.form("TextBox1") on page2.aspx and it doesn't have
the contents of the textbox on page1.


Response.Redirect() doesn't send along any information from the sending
page to the receiving page. With Response.Redirect you can only send
along data through the querystring. So, from Page1 you could do:

Response.Redirect("Page2.aspx?TextBoxValue=" & TextBox1.Text)
And then in Page2.aspx you could do:

Dim tbValue as String = Request.QueryString("TextBoxValue")

hth

--

Scott Mitchell [ASP.NET MVP]
mi******@4GuysFromRolla.com
http://www.4GuysFromRolla.com/ScottMitchell

Nov 19 '05 #3
Although I have not tried it, I have seen written somewhere that client
calls to the server are possible, so if this is true then it would be
possible to callback to a running clock on the server.

Comments anyone ?
"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> wrote in message
news:Se*****************@newssvr27.news.prodigy.ne t...
rodchar wrote:
i have a plain aspx page (page1) with 1 textbox on it, i hardcode sample
text in the textbox. i have 1 button and in the codebehind button click
event i response.redirect to page2.

i try to do a request.form("TextBox1") on page2.aspx and it doesn't have
the contents of the textbox on page1.


Response.Redirect() doesn't send along any information from the sending
page to the receiving page. With Response.Redirect you can only send
along data through the querystring. So, from Page1 you could do:

Response.Redirect("Page2.aspx?TextBoxValue=" & TextBox1.Text)
And then in Page2.aspx you could do:

Dim tbValue as String = Request.QueryString("TextBoxValue")

hth

--

Scott Mitchell [ASP.NET MVP]
mi******@4GuysFromRolla.com
http://www.4GuysFromRolla.com/ScottMitchell

Nov 19 '05 #4
SORRY WRONG PLACE FOR THIS POST - MISTAKE!!!

"Mr Newbie" <he**@now.com> wrote in message
news:uy*************@TK2MSFTNGP12.phx.gbl...
Although I have not tried it, I have seen written somewhere that client
calls to the server are possible, so if this is true then it would be
possible to callback to a running clock on the server.

Comments anyone ?
"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> wrote in message
news:Se*****************@newssvr27.news.prodigy.ne t...
rodchar wrote:
i have a plain aspx page (page1) with 1 textbox on it, i hardcode sample
text in the textbox. i have 1 button and in the codebehind button click
event i response.redirect to page2.

i try to do a request.form("TextBox1") on page2.aspx and it doesn't have
the contents of the textbox on page1.


Response.Redirect() doesn't send along any information from the sending
page to the receiving page. With Response.Redirect you can only send
along data through the querystring. So, from Page1 you could do:

Response.Redirect("Page2.aspx?TextBoxValue=" & TextBox1.Text)
And then in Page2.aspx you could do:

Dim tbValue as String = Request.QueryString("TextBoxValue")

hth

--

Scott Mitchell [ASP.NET MVP]
mi******@4GuysFromRolla.com
http://www.4GuysFromRolla.com/ScottMitchell


Nov 19 '05 #5

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

Similar topics

0
by: duelearning | last post by:
I do not think that on the current market, or being developed, there is a real concept search tool. The key issue is that nobody has offered a satisfactory answer on what a concept is and its...
0
by: ParasakthiGuru | last post by:
hai, i don't know Replication concept if anybody can know that replication concept pls sent to me replication brief tutorials By Guru
3
by: goodmen | last post by:
I think the boost::concept_check is too complex. Here is my solution about static interface and concept. The static interface can be used as function param. It is just a proxy of the real...
14
by: MLH | last post by:
After entering a date (earlier than today's date) into a textbox control though, I'm stumped as to why VBA thinks date I enter into the control is greater than Now - when they are CLEARLY less than...
1
by: sbettadpur | last post by:
Hi help me anybody, here is my requirement i have totally 4 web pages, if i want to send data from 1st page then i need to get at 4th page with out using hidden field concept in text fields from...
2
by: ExpressTree | last post by:
What is Delegate and Event Concept in C#.Net? I want to know about Delegates and Event Concept in C#.Net. Please Explain the same With Proper Examples. Thanks in advance. I want to know the...
2
by: suganthy | last post by:
Hi, Can any one tell the merits and demerits of table concept in integrating a html layout when compared with DIV concept Thanks
2
Subsciber123
by: Subsciber123 | last post by:
I am writing a program to create family trees. It is stable, but I would say that it is still in the pre-alpha stage. Anyway, I would like to be able to export the tree to a concept map. Does...
3
by: Ravi | last post by:
Is this the correct way to think of "base class"? The "base class" is a class from which other classes are derived. The "base class" will never be derived from another class.
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?
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
marktang
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,...
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
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
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,...

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.