Microsoft
Software
Hardware
Network
Question : DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'StateProvinceID'.
This is code on offensive line:
Line 67: <asp:DropDownList ID="DropDownListState" runat="server" DataSourceID="SqlDataSourc
e1" DataTextField="Name" DataValueField="StateProvi
nceID" SelectedValue='<%# Bind("StateProvinceID") %>' />
This is Data source:
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:QBS_1_Da
ta_Writer_
Connection
String %>" SelectCommand="SELECT 181 AS StateProvinceID, ' ' AS Name, 'US' AS CountryRegionCode UNION SELECT StateProvinceID, Name, CountryRegionCode FROM StateProvince WHERE (CountryRegionCode = 'US') ORDER BY Name">
</asp:SqlDataSource>
So why can't it find the "StateProvinceID"?????
Answer : DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'StateProvinceID'.
refer to , this will help
http://forums.asp.net/p/79
3752/79395
5.aspx
Random Solutions
Sharepoint Webpart page load event issue
Removing the "Dot" From an Unordered List
Intel Sata RAID controller on RHEL 4 problem
View generated source with vb.net httpwebrequest
How do I get this PHP IMAP script to fetch the body of emails? I can't get it to work.
Small Business mathematics
How do I (re-)enable heap memory allocation within a CWinThread-derived class thread function invoked directly from InitInstance?
Javascript to get <TD> inner text in MSIE, FF and Chrome
Out of Office Assistant not working w/Forwarding Configured
blue screen on Server2003 install