can we transfer data from one page to another page using
viewstate if so how?if not y?
Answer / alb.shah
Yes.
View state is page specific; it contains information about
controls embedded on theparticular page. ASP.NET 2.0
resolves this by embedding a hidden input field
name,__POSTBACK . This field is embedded only when there is
an IButtonControl on thepage and its PostBackUrl property is
set to a non-null value. This field contains the viewstate
information of the poster page. To access the view state of
the poster page, you canuse the new PreviousPage property of
the page
Page poster = this.PreviousPage;
Then you can find any control from the previous page and
read its state
Label posterLabel =(Label)poster.findControl("myLabel");
string lbl = posterLabel.Text;
This cross-page post back feature also solves the problem of
posting a Form to multiplepages, because each control, in
theory, can point to different post back URL.
| Is This Answer Correct ? | 10 Yes | 1 No |
Explain what a diffgram is and a good use for one?
1 Answers Siebel Systems, Syntax Softtech,
how to add cliet side event to server side? and how to register client script to sever side? wt difference these two
what r the Templeats in ASP.net?
Why do we use asp.net?
Explain culture and uiculture values.
What is session id in web application?
I have been asked in an interview What is your LOC(Line of Code)What will be the probable answer for that
1 Answers HCL, Infosys, Mantec Consultants,
What is application Object?
What is the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?
What is the difference between page directive include and action tag include?
What is rich control in asp.net?
What is customer control and user control?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)