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
viktors
NA
54
0
Error: not all code paths return a value ???
May 14 2004 11:07 AM
hi can someone please tell me where i am going wrong in my code and why i am getting an error of this kind.. protected SqlDataReader BindState() { SqlConnection myConnection = new SqlConnection(ConnStr); SqlCommand myCommand = new SqlCommand("sp_das_state_sel",myConnection); myCommand.CommandType = CommandType.StoredProcedure; try { myConnection.Open(); return (myCommand.ExecuteReader(CommandBehavior.CloseConnection)); } catch (SqlException SQLexc ) { Response.Write(SQLexc.ToString()); } finally { myConnection.Close(); myCommand.Connection.Close(); } } thanks.. :)
Reply
Answers (
1
)
List of one ListBox changes with the selection of another
how 2 do switch with multiple case?