Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Login access via web.config

$
0
0

Guys, as a beginner and having self study to .net. I have been trying to create a login which connects to my database but I a not able to understand that how to get complete my connection string from web.config

web.config contains following:

<add name="SqlConn" providerName="System.Data.SqlClient" connectionString="Data Source=server;Initial Catalog=databasename;User ID=" txt_username ";Password=" txt_pass " Persist Security Info=True;"  />

I know that I cannot call txt_username.... Then how can I refer it to web.config when I prompt user to login via my login.aspx page?

Please help to understand it better. If anyone know videos related to this please do share it so that I can learn it better and better.


Viewing all articles
Browse latest Browse all 4737


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>