I’m a new-born programmer so I am NOT experienced, nor do I understand all the fancy terms you guys know and use 😉
But, as something new I’ve been looking into DataAccess (BLL I think it’s called), I wan’t to retrieve informations from my SQL Database but I get this error:
“GetRow Does Not Exist In the Current Context”
Here are my pages:
Default.aspx:
<asp:Label ID="lblDescription" runat="server" Text='<%# Eval("Forside") %>' />
Default.aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
DataAccess dataAccess = new DataAccess("DrinkOnlineConnectionString");
dataAccess.AddParameter("@id", "1");
DataRow row = GetRow("SELECT Forside FROM [Tekster] WHERE id = @id");
if (row != null)
{
lblDescription.Text = row["Forside"].ToString();
}
}
Please remember, I am still new to programming. 🙂
How about