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
Post a Comment