How and where is best and highly seucrity for creating conn?
how an where is best and highly seucrity for creating connection to sql database in asp.net
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Raja TPosted Mar 4, 2015, 2:17 PM
public partial class SignUp : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["DatabaseConnectionString"].ToString());
protected void Page_Load(object sender, EventArgs e)
{
//some logic
}
}
This the best and highly seucrity for creating connection to sql database
Thanks