Click here to Skip to main content
16,006,535 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCookie Authentication Pin
munjalpandya19-Jun-06 18:38
munjalpandya19-Jun-06 18:38 
QuestionSingle sign on Pin
ranjuforum19-Jun-06 17:48
ranjuforum19-Jun-06 17:48 
AnswerRe: Single sign on Pin
Vasudevan Deepak Kumar19-Jun-06 23:22
Vasudevan Deepak Kumar19-Jun-06 23:22 
QuestionEvaluate string as object name Pin
brnwdrng19-Jun-06 12:40
brnwdrng19-Jun-06 12:40 
AnswerRe: Evaluate string as object name Pin
Alsvha19-Jun-06 21:20
Alsvha19-Jun-06 21:20 
GeneralRe: Evaluate string as object name Pin
brnwdrng20-Jun-06 4:28
brnwdrng20-Jun-06 4:28 
Questionwhat is viewstate ? Pin
Mohammed Amine19-Jun-06 11:50
Mohammed Amine19-Jun-06 11:50 
AnswerRe: what is viewstate ? Pin
varshavmane19-Jun-06 20:17
varshavmane19-Jun-06 20:17 
Hi,

When a control is created dynamically at run time, some information about the control is stored in the view state that is rendered with the page. When the page is posted back to the server, however, non-dynamic controls (those defined on the page) are instantiated in the Page.Init event and view state information is loaded before the dynamic controls can be recreated (generally in the Page_Load handler). Effectively, before the dynamic controls are recreated, view state is temporarily out of sync with the page's controls. After the Page_Load event has run, but before control event handling methods are called, the remaining view state information is loaded into the dynamically created controls.

In most scenarios, this view state processing model works fine. Typically, you add dynamic controls to the end of a container's collection of controls. The view state information stored for the dynamic controls is therefore extra information at the end of the view state structure for the appropriate container, and the page can ignore it until after the controls are created.

However, view state information about dynamically created controls can be a problem in two scenarios:

If you insert dynamic controls between existing controls.
If you insert controls dynamically and then reinsert them during a round trip, but with different values.
If you insert dynamic controls between existing controls, the dynamic control's view state information is inserted into the corresponding location of the view state structure. When the page is posted and the view state is loaded, the dynamic control does not yet exist; therefore, the extra information in view state does not correspond to the right control. The result is usually an error indicating an invalid cast.

Hope u understood the y we require ViewState. Smile | :)

GeneralRe: what is viewstate ? Pin
Mohammed Amine19-Jun-06 23:34
Mohammed Amine19-Jun-06 23:34 
GeneralRe: what is viewstate ? Pin
varshavmane19-Jun-06 23:43
varshavmane19-Jun-06 23:43 
GeneralRe: what is viewstate ? Pin
Mohammed Amine19-Jun-06 23:46
Mohammed Amine19-Jun-06 23:46 
QuestionHow to replace apostrophes? [modified] Pin
Goalie3519-Jun-06 11:31
Goalie3519-Jun-06 11:31 
AnswerRe: How to replace apostrophes? Pin
pmpdesign19-Jun-06 14:01
pmpdesign19-Jun-06 14:01 
AnswerRe: How to replace apostrophes? Pin
Guffa19-Jun-06 20:48
Guffa19-Jun-06 20:48 
Questionjavascript problem in webpart [modified] Pin
Dhruvil19-Jun-06 10:52
Dhruvil19-Jun-06 10:52 
QuestionEmail problem with ASP.NET 2.0 (VB) Pin
Keith Goddard19-Jun-06 10:25
Keith Goddard19-Jun-06 10:25 
AnswerRe: Email problem with ASP.NET 2.0 (VB) Pin
smita_roy19-Jun-06 19:35
smita_roy19-Jun-06 19:35 
GeneralRe: Email problem with ASP.NET 2.0 (VB) Pin
Keith Goddard20-Jun-06 11:34
Keith Goddard20-Jun-06 11:34 
Questioncan you help me do ma first web page please ? Pin
Mohammed Amine19-Jun-06 9:24
Mohammed Amine19-Jun-06 9:24 
AnswerRe: can you help me do ma first web page please ? Pin
Joshua Lunsford19-Jun-06 10:52
Joshua Lunsford19-Jun-06 10:52 
GeneralRe: can you help me do ma first web page please ? Pin
Mohammed Amine19-Jun-06 11:52
Mohammed Amine19-Jun-06 11:52 
QuestionDeploying SQL .MDF File [modified] Pin
emran83419-Jun-06 9:08
emran83419-Jun-06 9:08 
AnswerRe: Deploying SQL .MDF File Pin
Joshua Lunsford19-Jun-06 10:55
Joshua Lunsford19-Jun-06 10:55 
QuestionSiteMap + roles issue [modified] Pin
eggsovereasy19-Jun-06 8:51
eggsovereasy19-Jun-06 8:51 
AnswerRe: SiteMap + roles issue Pin
minhpc_bk19-Jun-06 10:39
minhpc_bk19-Jun-06 10:39 

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.