Hi
I used DataForm Control to create an edit form for one of my custome atbles. It shows the data correctley ... but after changing some items and hitting OK this error appears:
Form content which is intended to update does not exist.what is the reason behind it?
.ascx page code:
<cms:DataForm ID="EditAdForm" runat="server" ClassName="Ad.Advertise" />
ascx.cs page code:
private string mAlternativeFormName = "Ad.Advertise.EditAdvertise";
public string AlternativeFormName
{
get
{
return mAlternativeFormName;
}
set
{
mAlternativeFormName = value;
EditAdForm.AlternativeFormFullName = value;
EditAdForm.VisibilityFormName = value;
}
}
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
int adid =Convert.ToInt16( e.CommandArgument); EditAdForm.Info = AdInfoProvider.GetAdvertiseInfo(adid);
EditAdForm.AlternativeFormFullName = this.AlternativeFormName;
EditAdForm.VisibilityFormName = this.AlternativeFormName;
EditAdForm.AllowEditVisibility = true;
EditAdForm.IsLiveSite = true;
}