Howdy. I've created a custom section within umbraco backend and I am having a problem with postbacks.
I have an aspx page that inherits umbraco.BasePages.UmbracoEnsuredPage and I am loading a usercontrol that contains a DataGrid. When I try edit the datagrid, the first postback works fine and I can edit, but then the Update command just never gets hit. It's like the 1st postback causes the rest of the page to lose viewstate.
Anyone had this before? Is there anything I should be aware of?
I will once Umbraco v5 becomes the dogs. If only there was an event were people could gather and play or "Hack" (if you will), their way around the v5 alpha.
Custom section with UmbracoEnsuredPage
Howdy. I've created a custom section within umbraco backend and I am having a problem with postbacks.
I have an aspx page that inherits umbraco.BasePages.UmbracoEnsuredPage and I am loading a usercontrol that contains a DataGrid. When I try edit the datagrid, the first postback works fine and I can edit, but then the Update command just never gets hit. It's like the 1st postback causes the rest of the page to lose viewstate.
Anyone had this before? Is there anything I should be aware of?
Okay, sorted... turns out I had to bind the datagrid in Page_Init and Page_Load.
http://our.umbraco.org/forum/developers/extending-umbraco/4230-Persisting-DropDownList-on-PostBack-%28in-custom-sectiontree-page%29?p=0#comment15318
I really will get the hang of the whole page lifecycle one of these years.
Glad you figured it out... get yourself into ASP.NET MVC dude, all that PostBack stuff will be a thing of the past - just like classic ASP dayz! ;-)
I will once Umbraco v5 becomes the dogs. If only there was an event were people could gather and play or "Hack" (if you will), their way around the v5 alpha.
Ahh, if only hey :)
Oh yes, that would be awesome... like a "hack marathon", or something?
Yeah, but with a much better, catchier name.
is working on a reply...