can we transfer data from one page to another page using
viewstate if so how?if not y?
Answer Posted / pranit
Yes, we can access the viewstate variables across pages.
This is only possible if Cross Page Posting or
Server.transfer is used to redirect the user to other page.
If Response.redirect is used, then ViewState cannot be
accessed across pages.
StateBag class: This class is the primary storage mechanism
for all HTML and Web server controls. It stores
attribute/value pairs as strings associated with the
control. It tracks changes to these attributes only after
the OnInit method is executed for a page request, and saves
the changes to the page's or control's viewstate.
For
Detail:http://www.codeproject.com/Articles/37753/Access-ViewState-Across-Pages
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is custom events? How to create it?
What is asp according to you?
Is session server side or client side?
Is it true that a Web service must be written in .NET or not?
What is a SESSION and APPLICATION object?
Explain the asp.net mvc folder conventions? : asp.net mvc
What is AutoEventWireup attribute for ?
What kind of data can be stored in viewstate?
In which situation can you not use a viewstate?
Will the asp.net validators run in server side or client side?
Where do we store our connection string in asp.net application?
Can we store object in viewstate?
Can a master page have more than one contentplaceholder?
Distinguish between Server-side and Client-side code?
In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?