asp login validation with database

bethkomodo

New Member
i have login in my asp page req name/pass and buttoni create the conntionstring to my databaseand sqldatasource with the qurrey well here the sqldatasouce\[code\]<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CarRentalConnectionString %>" SelectCommand="SELECT * FROM [Customers] WHERE (([UserName] = @UserName) AND ([PassWord] = @PassWord))"> <SelectParameters> <asp:ControlParameter ControlID="uname" Name="UserName" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="pass" Name="PassWord" PropertyName="Text" Type="String" /> </SelectParameters></asp:SqlDataSource>\[/code\]my problem is i dont know how to active/execute itand how do i get the data thats return from the qurreyi have a feeling am going at this at the worng way (hope am worng)hope one of u can giv me a tip or point me in the right direction :)
thx in adv
 
Back
Top