TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
laby baby
NA
3
0
Login Control Error
Jul 20 2006 6:07 AM
hi i m using login control for the first time i got the following error.plz anyone help me to solve the error '_Default.SiteLevelCustomAuthenticationMethod(string, string)': not all code paths return a value private bool SiteLevelCustomAuthenticationMethod(string UserName, string Password) { bool boolReturnValue = false; string strConnection = "server=Laby/Laby;database=cfintranet;uid=sa;pwd=;"; SqlConnection Connection = new SqlConnection(strConnection); String strSQL = "Select * From user"; SqlCommand command = new SqlCommand(strSQL, Connection); SqlDataReader Dr; Connection.Open(); Dr = command.ExecuteReader(); while (Dr.Read()) { if ((UserName == Dr["name"].ToString()) & (Password == Dr["Password"].ToString())) { boolReturnValue = true; } Dr.Close(); return boolReturnValue; } }
Reply
Answers (
0
)
Datagrid Update Problem
TV Tuner Card In C#.Net