A
Al
Hi,
I'm working on a site with master page with a few more pages that will show
up in the content placeholder. The master page has a few variables as
follows:
public partial class Main : System.Web.UI.MasterPage
{
DataTable objDT;
DataRow objDR;
. . . . .
}
On another page (Default.aspx), whcih is going to be showing up in the
master page content place holder, I have the following as the first line:
<%@ Page Language="C#" MasterPageFile="~/Main.Master"
AutoEventWireup="true" CodeBehind="Products.aspx.cs"
Inherits="onlineStore.Products" Title="Untitled Page" %>
I want to access the objDT data-table from the Master page from this
Default.aspx page, but I cannot seem to do that. It gives me an error objDT
does not exist in the current context.
I tried doing something like Master.objDT, but there is nothing like that,
and I still get an error.
Any ideas how I can resolve this?
Thanks!
Al
I'm working on a site with master page with a few more pages that will show
up in the content placeholder. The master page has a few variables as
follows:
public partial class Main : System.Web.UI.MasterPage
{
DataTable objDT;
DataRow objDR;
. . . . .
}
On another page (Default.aspx), whcih is going to be showing up in the
master page content place holder, I have the following as the first line:
<%@ Page Language="C#" MasterPageFile="~/Main.Master"
AutoEventWireup="true" CodeBehind="Products.aspx.cs"
Inherits="onlineStore.Products" Title="Untitled Page" %>
I want to access the objDT data-table from the Master page from this
Default.aspx page, but I cannot seem to do that. It gives me an error objDT
does not exist in the current context.
I tried doing something like Master.objDT, but there is nothing like that,
and I still get an error.
Any ideas how I can resolve this?
Thanks!
Al