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
Kyle Oliver
NA
67
30.1k
SQL Database not conecting to login form in asp.net
Feb 19 2019 11:02 AM
Hi,
I am very new to programming and have created a login form in Microsoft Visual Studio using asp.net and C#.
In this form I have a "Login" button and the code behind login button is
SqlConnection con = new SqlConnection("Data Source=KYLELT\SQLEXPRESS;Initial Catalog=EmploymentEquity;Integrated Security=True");>
My connection string is "Data Source=KYLELT\SQLEXPRESS;Initial Catalog=EmploymentEquity;Integrated Security=True"
When I run the code i get a "Unrecognized escape sequence" on this line of code with a red underline below the "\" in the code.
I can't connect to my database with this connection string because of the "\", what am I doing wrong?
Regards,
Kyle
Reply
Answers (
3
)
Gridview Dropdownlist value show in label
search code in text box ?