Click here to Skip to main content
15,903,540 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: can i used 1 page's data of viewstate in another page Pin
padmanabhan N10-Aug-09 22:37
padmanabhan N10-Aug-09 22:37 
AnswerRe: can i used 1 page's data of viewstate in another page Pin
Arindam Sinha10-Aug-09 22:49
Arindam Sinha10-Aug-09 22:49 
GeneralRe: can i used 1 page's data of viewstate in another page Pin
vid nandha10-Aug-09 23:29
vid nandha10-Aug-09 23:29 
GeneralRe: can i used 1 page's data of viewstate in another page Pin
vid nandha10-Aug-09 23:31
vid nandha10-Aug-09 23:31 
GeneralRe: can i used 1 page's data of viewstate in another page Pin
padmanabhan N10-Aug-09 23:39
padmanabhan N10-Aug-09 23:39 
GeneralRe: can i used 1 page's data of viewstate in another page Pin
vid nandha10-Aug-09 23:51
vid nandha10-Aug-09 23:51 
GeneralRe: can i used 1 page's data of viewstate in another page Pin
padmanabhan N11-Aug-09 0:02
padmanabhan N11-Aug-09 0:02 
GeneralRe: can i used 1 page's data of viewstate in another page Pin
Arindam Sinha11-Aug-09 1:26
Arindam Sinha11-Aug-09 1:26 
vid nandha wrote:
whats your opinion on that discussion


The opinion is very simple - viewstate is page specific. This should be enough to remove your confusion.

Now you mentioned that Server.Transfer with respect to this topic.
1. Server.Trasfer allows you access the instance of the source page. Using that you can access any property defined in that. It's not about accessing the ViewState, it's about accessing the reference of the source page.
2. In practice, a class hides the members which other class can not access. There should be some interfaces (methods) which would allow other classes to interact with the members. Now suppose you have all public properties then what's use of wrapping them. The same thing is applicable here.If you can access the source page's instance in the target page (while Server.Transfer),you can access everything of that page (if you wish) not only the ViewState.

As a practice, you can not access ViewState of any page from other page.

Regards,
Arindam Sinha
MyBlog - http://arindamsinha.wordpress.com/
Please give your feedback on this answer.

AnswerRe: can i used 1 page's data of viewstate in another page Pin
keyur satyadev11-Aug-09 0:10
keyur satyadev11-Aug-09 0:10 
QuestionProblem in accessing page from folder [modified] Pin
ais0710-Aug-09 20:44
ais0710-Aug-09 20:44 
AnswerRe: Problem in accessing page from folder Pin
Zafar A khan 10-Aug-09 20:52
professionalZafar A khan 10-Aug-09 20:52 
GeneralRe: Problem in accessing page from folder Pin
ais0710-Aug-09 20:57
ais0710-Aug-09 20:57 
GeneralRe: Problem in accessing page from folder Pin
ais0710-Aug-09 21:13
ais0710-Aug-09 21:13 
GeneralRe: Problem in accessing page from folder Pin
padmanabhan N10-Aug-09 22:41
padmanabhan N10-Aug-09 22:41 
GeneralRe: Problem in accessing page from folder Pin
Greg Chelstowski10-Aug-09 23:19
Greg Chelstowski10-Aug-09 23:19 
GeneralRe: Problem in accessing page from folder Pin
padmanabhan N10-Aug-09 23:47
padmanabhan N10-Aug-09 23:47 
Questionquery behind a textbox Pin
haleemasher10-Aug-09 20:28
haleemasher10-Aug-09 20:28 
AnswerRe: query behind a textbox Pin
Zafar A khan 10-Aug-09 20:35
professionalZafar A khan 10-Aug-09 20:35 
AnswerRe: query behind a textbox Pin
Abhijit Jana10-Aug-09 20:35
professionalAbhijit Jana10-Aug-09 20:35 
AnswerRe: query behind a textbox Pin
xbmly10-Aug-09 20:50
xbmly10-Aug-09 20:50 
Questiondisplay menu items based on database table values Pin
Punit Belani10-Aug-09 20:02
Punit Belani10-Aug-09 20:02 
AnswerRe: display menu items based on database table values Pin
Abhijit Jana10-Aug-09 20:19
professionalAbhijit Jana10-Aug-09 20:19 
AnswerRe: display menu items based on database table values Pin
Zafar A khan 10-Aug-09 20:29
professionalZafar A khan 10-Aug-09 20:29 
QuestionExport To Excel using asp.net mvc with ajax.... Pin
dayakar_dn10-Aug-09 19:08
dayakar_dn10-Aug-09 19:08 
AnswerRe: Export To Excel using asp.net mvc with ajax.... Pin
Abhijit Jana10-Aug-09 19:10
professionalAbhijit Jana10-Aug-09 19:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.