Solved

Refresh ENtityDatasource programatically

Posted on 2010-11-12
1
1,855 Views
Last Modified: 2012-05-10
Hi

I have a combobox databinded to a EntityDataSource.

Somewhere else in the code I update the database, I want the the combobox to register this change.
After the update is made I do combobox.DataBind() but the combobox doesnt update until I refresh the whole page.
Both the combox and datasource are located in the same UpdatePanel.
Is there something Im not doing right?
0
Comment
Question by:o3h
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 34130892
If the combobox is in it's own UpdatePanel, then you will need to call Update() on the updatepanel as well, otherwise it won't reflect the changes.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now