I am looking in to the Application Compatability of .NET 4.5.I am looking for ASP.NET breaking changes.
http://msdn.microsoft.com/en-us/library/hh367887.aspx
I want to understand what is that mean.
I am able to see the data getting populated without explictly calling DataBind in Page.LoadComplete event.
Can some one help in identifying the different between .NET 4.0 and 4.5 for this control.
System.Web.UI.WebControls.EntityDataSource control | The Page.LoadComplete event no longer causes the | This change eliminates an extraneous trip to the database, prevents the values of controls from being reset, and produces behavior that is consistent with other data controls, such as |
Hi vijayarul,
Thanks for posting!
As we know,Page.LoadComplete event will raise after control events.
This is described in MSDN:
“Raised at the end of the event-handling stage.
Use this event for tasks that require that all other controls on the page be loaded.
”, actually, we usually do some setting about page control.
About WebFrom lifecycle, you can refer to this link:
http://msdn.microsoft.com/en-us/library/ms178472%28v=vs.100%29.aspx
About your doubt, the MSDN have clearly described:
“The
Page.LoadComplete event no longer causes the
System.Web.UI.WebControls.EntityDataSource control to invoke data binding for changes to create/update/delete parameters.”
It says that we may set the create/update/delete parameters of
EntityDataSource control in
Page.LoadComplete event , if we do it in NET4.0, after
Page.LoadComplete event, the
EntityDataSource control will once again retrieve data from db, but in NET4.5, we will retrieve data from the control cache and send the data into the control like GridView control, the change eliminates an extraneous trip to the database.
If you still have any problem, please let me know.
Thanks!
沒有留言:
張貼留言