Hi there, I have a repeater control in master page that fetches categories from Sql. Since these categories are common in some of the pages I decided to put the code in the master page. However, the user can create more categories from a content page and here the problem emerges. Since in the page life cycle events in the content page are executed after master page controls are created, when a user creates a category refreshing the page becomes compulsory in order to see the category created. As I don't want to refresh the page automatically, can anyone suggest me another way to handle this problem?
You have 3 options: 1) refresh the page, 2) use AJAX or 3) add another control after the repeater control that is updated with the inserted data, when no data is added only the data from the repeater control is visible, when data is added then data from the repeater and the other control is visible.
hey if you dont want to refresh the page automatically then use the ajax tools such as panel tool,update pannel for updating a specific part of page. search for this. if you will not find the solution then pm me i will tell you how to do this