c# - Attribute 'SelectQuery' is not a valid attribute of element 'SqlDataSource' -


I work on a project and now I get an error. I have a table userata and I want to connect to a database for registration. Want to see data from databases on espx page and page manager

This error is:

Type 'System.Web.UI.WebControls.SqlDataSource' is not a public property named 'SelectQuery' ... \ Manager .aspx

Code:

  & lt; asp: SqlDataSource id = "SqlDataSourceRegistration" runat = "server" connection string = "& lt;% $ connectionString: Registration extension string% & gt;" SelectCommand = "SELECT * FROM [UserData]" SelectQuery = "& lt;% $ Connection: Strings: Registration Connection% & gt;" & Gt; & Lt; / ASP: SQLDataSource & gt;         

Here you have an example where you can see that SqlDataSource

  & lt; asp: sqlDataSource id = "SqlDataSourceRegistration" SelectCommand = "Select *" connection string = "& lt;% $ connection from userdataConstructionString: RegistrationCreationString% & gt; Runat = "server" & gt; & Lt; / ASP: SQLDataSource & gt;    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -