Click here to Skip to main content
15,887,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to use Sitemappath control to add breadcrumbs in Master Page of a website? Pin
Kornfeld Eliyahu Peter4-Mar-14 22:33
professionalKornfeld Eliyahu Peter4-Mar-14 22:33 
GeneralRe: How to use Sitemappath control to add breadcrumbs in Master Page of a website? Pin
AshOmi4-Mar-14 23:14
professionalAshOmi4-Mar-14 23:14 
QuestionHow to get control inside Datagrid ? Pin
ngoloi4-Mar-14 4:03
ngoloi4-Mar-14 4:03 
AnswerRe: How to get control inside Datagrid ? Pin
Richard Deeming4-Mar-14 5:15
mveRichard Deeming4-Mar-14 5:15 
GeneralRe: How to get control inside Datagrid ? Pin
ngoloi4-Mar-14 17:46
ngoloi4-Mar-14 17:46 
AnswerRe: How to get control inside Datagrid ? Pin
Jαved10-Mar-14 22:39
professionalJαved10-Mar-14 22:39 
QuestionMenu focus Pin
Member 106415403-Mar-14 22:50
Member 106415403-Mar-14 22:50 
QuestionDropdown control doesn't always populate Pin
#realJSOP3-Mar-14 4:31
mve#realJSOP3-Mar-14 4:31 
I have a pair of dropdowns on a asp.net web site. The first dropdown populates when the page renders. The 2nd one populates when something is selected in the first one. My problem is that sometimes, the 2nd dropdown doesn't have anything in it. The drop down part looks like there should be (it's tall enough for about 10 items to be shown), but there is nothing in the box.

When the first combo selection changes, this code is run:

C#
int id = Convert.ToInt32(this.droplistMarkets.SelectedItem.Value);
this.Players = new Players();
this.droplistPlayers.Items.Clear();
this.droplistPlayers.DataSource = null;
this.droplistPlayers.DataBind();
this.Players.Fetch(id); // this is a database query to find all players in the specified market
this.droplistPlayers.DataTextField = "Name";
this.droplistPlayers.DataValueField = "Id";
this.droplistPlayers.DataSource = this.Players;
this.droplistPlayers.DataBind();
this.droplistPlayers.SelectedIndex = -1;


I've verified that the selected item from which the market id is taken is valid, and that the Players object is indeed populated, but the binding fails to work as expected.

Any help would be appreciated. Again, this only fails sometimes.

EDIT ===============================

It's looking like the database query might be the culprit.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013



modified 3-Mar-14 11:27am.

AnswerRe: Dropdown control doesn't always populate Pin
jkirkerx3-Mar-14 11:28
professionaljkirkerx3-Mar-14 11:28 
GeneralRe: Dropdown control doesn't always populate Pin
#realJSOP4-Mar-14 3:45
mve#realJSOP4-Mar-14 3:45 
GeneralRe: Dropdown control doesn't always populate Pin
jkirkerx4-Mar-14 6:14
professionaljkirkerx4-Mar-14 6:14 
AnswerRe: Dropdown control doesn't always populate Pin
Bernhard Hiller4-Mar-14 2:28
Bernhard Hiller4-Mar-14 2:28 
GeneralRe: Dropdown control doesn't always populate Pin
#realJSOP4-Mar-14 3:43
mve#realJSOP4-Mar-14 3:43 
GeneralRe: Dropdown control doesn't always populate Pin
Bernhard Hiller4-Mar-14 22:11
Bernhard Hiller4-Mar-14 22:11 
QuestionASP.net - Webforms - Dynamic controls Pin
tinaclement2-Mar-14 20:56
tinaclement2-Mar-14 20:56 
AnswerRe: ASP.net - Webforms - Dynamic controls Pin
Richard MacCutchan2-Mar-14 22:58
mveRichard MacCutchan2-Mar-14 22:58 
QuestionWindow.open Pin
Zeyad Jalil1-Mar-14 20:15
professionalZeyad Jalil1-Mar-14 20:15 
AnswerRe: Window.open Pin
Kornfeld Eliyahu Peter1-Mar-14 20:43
professionalKornfeld Eliyahu Peter1-Mar-14 20:43 
AnswerRe: Window.open Pin
jkirkerx2-Mar-14 9:19
professionaljkirkerx2-Mar-14 9:19 
QuestionPREVIEW ASP.NET PAGE ON A WEB BROWSER Pin
Member 106347491-Mar-14 0:15
Member 106347491-Mar-14 0:15 
SuggestionRe: PREVIEW ASP.NET PAGE ON A WEB BROWSER Pin
Richard Deeming3-Mar-14 0:50
mveRichard Deeming3-Mar-14 0:50 
QuestionMVC4 - WebMatrix.WebData.SimpleMembershipProvider vs System.Web.Security.MembershipProvider Pin
Swab.Jat27-Feb-14 17:17
Swab.Jat27-Feb-14 17:17 
QuestionWCF error, System.ServiceModel.CommunicationException the maximum message size quota for incoming messages has been exceeded Pin
littleGreenDude27-Feb-14 4:24
littleGreenDude27-Feb-14 4:24 
QuestionJQuery to get sum of testboxes values of each row in Repeater Control Pin
indian14326-Feb-14 11:30
indian14326-Feb-14 11:30 
AnswerRe: JQuery to get sum of testboxes values of each row in Repeater Control Pin
Ahmed Bensaid26-Feb-14 23:06
professionalAhmed Bensaid26-Feb-14 23:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.