I have an internal website (going on the intranet) that is going to go through vigorous testing to make sure that it is secure, so I am battening down the hatches so to speak and I coded a .NET repeater to Bind to a .NET SqlDatasource in the aspx page, not in the code behind. I use the SelectParameters tags to insert the string that is needed from a text box in order to run the query.
I am wondering just how safe this is from SQL Injection and other vulnerabilities.
<asp:SqlDataSource ID="DataGetAppServer" runat="server" ConnectionString="<%$ ConnectionStrings:testConn %>"
SelectCommand="SELECT [Server] FROM [ServerTracking] WHERE ([UserName] = @UserName)">
<SelectParameters>
<asp:ControlParameter ControlID="txtUser" Name="UserName" PropertyName="Text" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
Do I need to do more for this?