Click here to Skip to main content
14,662,856 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: How dynamic objects work during a post back Pin
Christian Graus15-Sep-09 15:00
mveChristian Graus15-Sep-09 15:00 
GeneralRe: How dynamic objects work during a post back Pin
compninja2515-Sep-09 16:13
Membercompninja2515-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
MemberN 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
Membercompninja2516-Sep-09 2:08 
GeneralRe: How dynamic objects work during a post back Pin
Christian Graus15-Sep-09 16:19
mveChristian 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
MemberArun 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
Memberr a m e s h15-Sep-09 20:39 
GeneralRe: How dynamic objects work during a post back Pin
compninja2516-Sep-09 2:21
Membercompninja2516-Sep-09 2:21 
QuestionPassing Credentials from ASP.NET to OWA Pin
ahayw0115-Sep-09 12:51
Memberahayw0115-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
Membermzuc30-Sep-09 22:01 
QuestionStored Procedures retrieving values Pin
greendragons15-Sep-09 12:48
Membergreendragons15-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
Membergreendragons15-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
Membergreendragons15-Sep-09 13:29 
GeneralRe: Stored Procedures retrieving values Pin
Christian Graus15-Sep-09 14:00
mveChristian 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
Membermark_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
mveChristian 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.