karthik jogaian

karthik jogaian

  • NA
  • 6
  • 11.5k

Finding solution to my simple project

Jun 19 2014 3:55 AM

I work on a project and now i receive an error. I have a table UserData and I want to connect a database to Registration.aspx page and after i want to see the data from database on a page Manager.aspx


This is the error: Type 'System.Web.UI.WebControls.SqlDataSource' does not have a public property named 'SelectQuery'...\Manager.aspx


Code:



<asp:SqlDataSource ID="SqlDataSourceRegistration" runat="server" ConnectionString="<%$ ConnectionStrings:RegistrationConnectionString %>" SelectCommand="SELECT * FROM [UserData]" SelectQuery="<%$ ConnectionStrings:RegistrationConnectionString %>"></asp:SqlDataSource>


Here is a printScreen: http://ift.tt/1i74ujJ


Please help me if someone know what is the problem.

Thanks in advance,
P.M.karthik Jogaian 


Answers (2)