SqlDataSource ใส่ค่า sql command ในส่วนของ Code behide
<asp:SqlDataSource ID="SqlDataSourceForAutoComplete" runat="server" ConnectionString="<%$ ConnectionStrings:defaultDatabase %>" > </asp:SqlDataSource> SqlDataSource1.SelectCommand = @"SELECT [ID], [Phone], [FirstName], [LastName] FROM (select [ID], [Phone], [FirstName], [LastName], row_number()over(order by t.[LastName]) as [rn] from [Persons] as…