I'm trying to change a pagelink on a EPiServer:Property at runtime by selecting pagelink from dropdown, but the Property-databind seem to be lagging one postback behind.
The code is rather simple:
void dropProduct_SelectedIndexChanged(object sender, EventArgs e)
{
XFormProperty.PageLink = new PageReference(Convert.ToInt32(this.dropProduct.SelectedValue));
XFormProperty.DataBind();
}
void dropProduct_SelectedIndexChanged(object sender, EventArgs e) { XFormProperty.PageLink = new PageReference(Convert.ToInt32(this.dropProduct.SelectedValue)); XFormProperty.DataBind(); }