1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / PagePropertiesEdit always has IsPostBack true

PagePropertiesEdit always has IsPostBack true

3 posts, 0 answered
  1. prudhvi
    prudhvi avatar
    5 posts
    Registered:
    15 Sep 2006
    30 Mar 2010
    Link to this post
    Hello there,

    I was trying to fit in custom properties to Pages. In the process I added new markup to PagePropertiesEdit and PagePropertiesInsert. From the code-behind, I am persisting my custom properties per page in a different table. All is well, I am able to create page and custom properties per page and am able to access those. But got stuck while enabling editability features. On the PagePropertiesEdit, it always has IsPostBack true which is making up fetching logic happen all the time and my changes to the UI elements like textboxes are lost.

    Any help is greatly appreciated and thanks in advance.
    Prudhvi
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    30 Mar 2010
    Link to this post
    Hello prudhvi,

    If you get the custom values from the database and set it on OnPreRender Method when PreRender  event rise. Process postback data is done before Load and after loading the view state and initialization of the controls.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. prudhvi
    prudhvi avatar
    5 posts
    Registered:
    15 Sep 2006
    30 Mar 2010
    Link to this post
    Fantastic! Thanks. You guys rock!
Register for webinar
3 posts, 0 answered