asp.net - DropdownList SqlDataSource does not pull *all* records -


I have a DropDownList that is linked to SQLDataSource. I am running the exact same query in SQL Management Studio and it pulls all the records, but when I execute it in SQLDataSource, it does not pull two records that I just added. Why?

  SELECT [REPID], [MyDB1.dbo.Reps] from [Manager ID] where [role] = 'manager' and ISNULL (RIP type, 'account execution') & lt; & Gt; The selection of 'House Account Exxic' association [Repad], [MyDB2.dbo] from [ManagerID] where the rip [roll] = 'manager' and the ISUNL (RIP type, 'account excise') & lt; & Gt; 'House Account Exxic'   

The problem line is the Repeep field. I have verified that it is Null for the records that I want to draw. I have spent more than an hour on this. Has any such thing come in? Any suggestions?

Output from SMSS

  Repand Manager ID ----------- ----------- 9 9 10 10 & lt; - this man's dropdown 42 42 333 333 & lt; Does not show - and this man 1026 1026 1065 1065 2014 1 300 9 300 9 3025 3025 5000 5000 5002 5002 6000 6000 9000 9000 This is not the only problem even if ISNULL (RepeatPoint, 'Account Execution'), it still does not drag the repID = 333, while this bridge does the repID = 10.  

What I found is that it has a duplicate of Repaid = 10 but still it should behave in the same way in the SSMS and dropdown list.

This behavior should not be done This is probably a bug but what I've found so far

  1. Repid = 2 except for reps = 10, which could be a problem.

  2. In two tables, Reptype = 'House Account Exic' in one table, while the other has this tap. In the SMSS and SQLDatasource the query is executed in a different way when the query is executed.

    There are still things that I can not solve, for example, in REPAID = 333, SMSS appears but not the dropdown list.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -