Click here to Skip to main content
15,888,283 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How dynamic objects work during a post back Pin
Christian Graus15-Sep-09 15:00
protectorChristian Graus15-Sep-09 15:00 
GeneralRe: How dynamic objects work during a post back Pin
compninja2515-Sep-09 16:13
compninja2515-Sep-09 16:13 
GeneralRe: How dynamic objects work during a post back Pin
N a v a n e e t h15-Sep-09 16:18
N a v a n e e t h15-Sep-09 16:18 
GeneralRe: How dynamic objects work during a post back Pin
compninja2516-Sep-09 2:08
compninja2516-Sep-09 2:08 
GeneralRe: How dynamic objects work during a post back Pin
Christian Graus15-Sep-09 16:19
protectorChristian Graus15-Sep-09 16:19 
GeneralRe: How dynamic objects work during a post back Pin
Abhijit Jana15-Sep-09 18:26
professionalAbhijit Jana15-Sep-09 18:26 
AnswerRe: How dynamic objects work during a post back Pin
Arun Jacob15-Sep-09 18:58
Arun Jacob15-Sep-09 18:58 
GeneralRe: How dynamic objects work during a post back Pin
Abhijit Jana15-Sep-09 19:08
professionalAbhijit Jana15-Sep-09 19:08 
Yes, But my question was different. We need to create those dynamic control over Init and Preinit() because of maintaining view state and load postback data. And In Init Event ASP.NET Create a control list to do all the operation during page life cycle.

Suppose you are creating one Dynamic Textbox on Page_Load and done some post back after changing some value of that textbox .As per the Page_Life Cycle goes, View State Data for the newly created text box has been saved because, SaveViewdata() calls after Pre_Render and Before Render().
Its means My View State data has been saved but, now why that data would not restored ? Though my ViewState data has already saved and LoadView State Data is calling before Page_load. So it should restore the data. But It should not. Beacuse, the reason I have said. In Init() asp.net creats an Control Tree. If you create the control on/after Page_Load, they are not a member of that tree.
There is also some workaround for it. Wink | ;) Wink | ;)

Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralRe: How dynamic objects work during a post back Pin
r a m e s h15-Sep-09 20:39
r a m e s h15-Sep-09 20:39 
GeneralRe: How dynamic objects work during a post back Pin
compninja2516-Sep-09 2:21
compninja2516-Sep-09 2:21 
QuestionPassing Credentials from ASP.NET to OWA Pin
ahayw0115-Sep-09 12:51
ahayw0115-Sep-09 12:51 
AnswerRe: Passing Credentials from ASP.NET to OWA Pin
Not Active15-Sep-09 13:26
mentorNot Active15-Sep-09 13:26 
GeneralRe: Passing Credentials from ASP.NET to OWA Pin
Abhijit Jana15-Sep-09 18:31
professionalAbhijit Jana15-Sep-09 18:31 
GeneralRe: Passing Credentials from ASP.NET to OWA Pin
Not Active16-Sep-09 1:51
mentorNot Active16-Sep-09 1:51 
AnswerRe: Passing Credentials from ASP.NET to OWA Pin
Abhijit Jana15-Sep-09 18:36
professionalAbhijit Jana15-Sep-09 18:36 
GeneralRe: Passing Credentials from ASP.NET to OWA Pin
mzuc30-Sep-09 22:01
mzuc30-Sep-09 22:01 
QuestionStored Procedures retrieving values Pin
greendragons15-Sep-09 12:48
greendragons15-Sep-09 12:48 
AnswerRe: Stored Procedures retrieving values Pin
Abhishek Sur15-Sep-09 12:54
professionalAbhishek Sur15-Sep-09 12:54 
GeneralRe: Stored Procedures retrieving values Pin
greendragons15-Sep-09 13:08
greendragons15-Sep-09 13:08 
AnswerRe: Stored Procedures retrieving values Pin
Abhishek Sur15-Sep-09 13:14
professionalAbhishek Sur15-Sep-09 13:14 
GeneralRe: Stored Procedures retrieving values Pin
greendragons15-Sep-09 13:29
greendragons15-Sep-09 13:29 
GeneralRe: Stored Procedures retrieving values Pin
Christian Graus15-Sep-09 14:00
protectorChristian Graus15-Sep-09 14:00 
AnswerRe: Stored Procedures retrieving values Pin
Abhishek Sur15-Sep-09 22:38
professionalAbhishek Sur15-Sep-09 22:38 
QuestionCould not load file or assembly 'MySql.Data, Version=5.2.3.0, Culture=neutral, PublicKeyToken Pin
mark_me15-Sep-09 12:16
mark_me15-Sep-09 12:16 
AnswerRe: Could not load file or assembly 'MySql.Data, Version=5.2.3.0, Culture=neutral, PublicKeyToken Pin
Christian Graus15-Sep-09 12:34
protectorChristian Graus15-Sep-09 12:34 

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.