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
Tony Tony
NA
10
642
How can I create a Class/Method
Apr 9 2020 9:50 AM
Hello,
I have this connection string code below;
string conn = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString.ToString();
SqlConnection cn;
cn = new SqlConnection(conn);
cn.Open();
How can I create a Class/Method to be able to call just a string or variable whenever I need this connection strings on my code page?
I hope my question is clear? Thanks for helping in advance.
Reply
Answers (
2
)
How to convert base64 to original file (pdf,doc,excel)
Asp.Net > Localization > Direction RightToLeft property not