using System; using System.Data; using System.Data.SqlClient;
namespace anasayfa { public partial class ana : System.Web.UI.Page {
public string GetConnectionString() { return System.Configuration.ConfigurationManager.ConnectionStrings["conString"].ConnectionString; //sets the connection string from your web config file "ConnString" is the name of your Connection String