View Single Post
  #1 (permalink)  
Old February 1st, 2007, 07:14 PM
madAlan madAlan is offline
Authorized User
Join Date: Jan 2007
Location: Milano, , Italy.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wrox Blog - Save Button & Refresh category

Hi all,

I've noticed that after creating/modifing a Blog Entry, when I click "SAVE" button the category repeater control does not report correct data. eg. If a create a new Blog Entry in "Personal" category this is not added.

I see that on Page Load event of the BlogEntriesFilter control, a query to categories and DataBind are made in case on NOT PostBack.

I've placed this 2 lines of code
repCategories.DataSource = BlogManager.GetCategories()
out of the "Not Page.IsPostBack " code, but nothing is changed.

What I'm doing wrong? How is the best to force a refresh of the repCategories asp control after the "SAVE" button event?