I am new to asp.net but I have been a professional developer for a few years now and I have a few questions....
I am trying to make an updatable website where information such as title and content is added to the database and displayed on the website.
I have managed to display the content to a sample page but I am looking into repeating the code for many pages and also each page callback creates a database connection running a sql call everytime. problem is content will not change much and I want tor edcude overhead, maybe cache the data.
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection conn;
SqlCommand comm;
SqlDataReader reader;
string connectionString =
ConfigurationManager.ConnectionStrings["skylightstudios"].ConnectionString;
conn = new SqlConnec ...
Go to the complete details ...