Find my UserControl front-end code:
Welcome again
onclick="btnLoginClick_Click" />
Find my UserControl back-end code (VB, you may reply in c# too):
Dim sds As New SqlDataSource()
sds.ConnectionString = ConfigurationManager.ConnectionStrings("ConnectionString1").ToString()
Dim b As String = txtUserName.Text
Dim c As String = txtPassword.Text
sds.SelectParameters.Add("username", TypeCode.[String], b)
sds.SelectParameters.Add("password", TypeCode.[String], c)
sds.SelectCommand = "SELECT * FROM [users] WHERE [username] = @username AND [password] = @password"
Find my error:
Error: txtUserName and txtPassword is not declared.
What I use to access the controls placed under LoginView.


Suthish NairRank #92 · 22.8K reputationPosted May 12, 2011, 10:29 PM EDT
The LoginView is a container control.
In order to access the control contained within it, you would first have to do a FindControl on the LoginView:
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted May 12, 2011, 11:52 PM EDT
correct ans:-
can i ask for some tips plz.
(i) since how long you are familiar with c# and vb lang. (provide tips for me)
(ii) u always suggest correct, how? (provide tips for me)
(iii) are u professional coder?
please ??
Suthish NairRank #92 · 22.8K reputationPosted May 13, 2011, 9:31 AM EDT