Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

ASP Drop down list issues while trying to connect to SQL

$
0
0

I'm using SharePoint 2010 and SQL 2012. On the aspx page that I designed in SharePoint Designer, I'm trying to setup a drop down list and connect it to SQL table. During wizard setup, I can see all the values and everything working (very simple small table, 2 columns with ID and description, less than 20 rows). When I try to preview the page in the browser, I get "This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’” message.

I found the link that addressed the issue and tried the solution number 1 - see link below

http://www.randomizzzer.com/2011/02/how-to-troubleshoot-error-message-this-control-does-not-allow-connection-strings-with-the-following-keywords-%E2%80%98integrated-security%E2%80%99-%E2%80%98trusted_connection%E2%80%99/

However now I'm getting an error "Type 'System.Web.UI.WebControls.SqlDataSource' does not have a public property named 'AllowIntegratedSecurity'" - in design mode and error "Cannot create an object of type
'System.Boolean' from its string representation '”True”' for the
'AllowIntegratedSecurity' property.
" in a browser.  But that is what the link above suggests to do and my code is pretty much identical to the one listed in that link

<asp:SqlDataSource AllowIntegratedSecurity=”True” runat="server" ID="SqlJob" and so on...</asp:SqlDataSource>

The suggestion number 2 from that article won't work for us, as the company will not want to globally allow Integrated Security. Am I missing something? Are there other steps that I need to take to address it or any other solution?

The management doesn't want to hardcode the drop-down list in any way and opposed to use it as SharePoint list. Any ideas would be appreciated.


Alla Sanders





Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>