How to generate connection string? first i have to create a table through which i need to fetch the data and then create a connection string but without doing in webconfig because doing in webconfig is not secure and i have to create a button also after clicking on that it should show a message "connection established" so please help me out from this..
soni chiraniya
0
Newbie Poster
Recommended Answers
Jump to Posthttp://www.connectionstrings.com/
Why is the application config unsecure in your situation? It is better practice to put the string here than inside the application so that it can be changed without re-compiling as you deploy to different environments.
Jump to PostThe config file would be visible to anyone with access to the server yes. That is why you encrypt the information so that it becomes secure.
It is possible to do within the C# code yes but it is not best practice and the connection string is impossible to change …
All 5 Replies
Mike Askew
131
Veteran Poster
Featured Poster
ddanbe
commented:
Good advice.
+14
soni chiraniya
0
Newbie Poster
Mike Askew
131
Veteran Poster
Featured Poster
soni chiraniya
0
Newbie Poster
Mike Askew
131
Veteran Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.