Solved

Refresh ENtityDatasource programatically

Posted on 2010-11-12
1
1,893 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Running powershell scripts from ASP.NET 6 83
Json and ajax 1 44
asp.net web app 3 58
Calculating percentage 2 48
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…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…

738 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