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
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Raja TRank #685 · 3.5K reputationPosted Mar 4, 2015, 9:17 AM EST
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