473,395 Members | 1,856 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.

Transfer ViewState between pages

How transfer ViewState between 2 aspx-pages?

--
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount
Jan 4 '08 #1
3 4323
How transfer ViewState between 2 aspx-pages?
AFAIK ViewState is designed to store state of the _single_ page on the
client side and your reqirement in my opinion doesn't target the ViewState.

But strictly answering: ViewState is implemented on the page as the
hidden form filed so You can just use this value and POST, GET,
whatever. Then You should properly interpret this value on another page;
with overriding Control.LoadViewState probably You can get the
functionality You asked but I would consider much simpler solution.

Regards
Jan 4 '08 #2
"Alexander Vasilevsky" <ma**@alvas.netwrote in message
news:fl***********@behemoth.volia.net...
How transfer ViewState between 2 aspx-pages?
Use Server.Transfer:
http://msdn2.microsoft.com/en-us/library/caxa892w.aspx

However, this can lead to problems:
http://www.devx.com/vb2themax/Tip/18744
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 4 '08 #3
On 4 jan, 13:55, "Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote:
"Alexander Vasilevsky" <m...@alvas.netwrote in message

news:fl***********@behemoth.volia.net...
How transfer ViewState between 2 aspx-pages?

Use Server.Transfer:http://msdn2.microsoft.com/en-us/library/caxa892w.aspx

However, this can lead to problems:http://www.devx.com/vb2themax/Tip/18744

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
If the data you want to transmit from one page to another, is
reasonably big, you can transmit it via the Session.
Jan 16 '08 #4

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

Similar topics

1
by: Jim Mitchell | last post by:
If I do a server.transfer, do I loose the view state? What if the user hits the back button after a server.transfer? Do I get the viewstate back? Thanks in advance. Jim
0
by: Moheb Missaghi | last post by:
Hi: I am trying to use the Transfer statement in an .aspx file to redirect and send Form and QueryString collections to a different page. A good example where this is needed is a checkout page...
3
by: Manuel Lopez | last post by:
Hello, We have two applications that will reside on the same webserver. We want to be able to post from pages in App1 to to pages in App2. We need to pass sensible data, so we cannot use...
3
by: yma | last post by:
Hi, I put a .aspx page inside Server.Transfer() within a button. The page was created for testing so it only has button and I did not add code. When I click the button, it gave me an error...
8
by: Cathie | last post by:
Hi guys, I want to do a Server.Transfer to get to a second page, so that I may retrieve variables I have set in the first page. I'm doing that with the usual Server.Transfer("pagename", true). ...
3
by: Ken Varn | last post by:
I have Page1 that does a transfer to page2. When the user is done with Page2, there is a button on Page2 that they can press to bring them back to Page1. I use Server.Transfer to navigate from...
4
by: Terry Olsen | last post by:
Since both methods seem to produce the same results, in which cases would you prefer one over the other? The only thing I would think is using Server.Transfer because of some browsers blocking...
7
by: dee | last post by:
Inside Search.aspx I make the following call: Server.Transfers("Table.aspx"); I'm transfered to Table.aspx and browser still shows Search.aspx in address bar. However, I do postback within...
3
by: lanem | last post by:
I want to use server.transfer to go to a new aspx page. I want to be able to still have the viewstate from the previous page. I have researched this and see a lot about it, but I can't find a...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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.