In Add entry.aspx page, newly added mandatory attribute does not get saved in database.

Jun 15, 2008 at 6:24 PM

I wanted to add a new mandatory attribute in addentry.aspx page, after adding it,

I have included the mandatory attribute in auto save function inside addentry.aspx page and also made corresponding declaration in addentry.cs file.

When i run add entry.aspx page, i could see mandatory attribute and it's validation also working.

But when post is saved, i could see the saved post in ms sql posts table, but mandatory attribute column is not getting updated. viz. mandatory attribute does not get saved.

Anyone who has suggestion or solution, pls reply.

Jun 15, 2008 at 10:13 PM
Please make sure you already added the required attributes in Post class, include in the logic when you save the post in MSSQLBlogProvider.InsertPost() method, and assign the attribute in Add_Entry.btnSave_Click() event handler.

Agus Suhanto