I'm having trouble binding/displaying a class variable to
the display aspx page. Perhaps someone can suggest what I
am doing wrong.
############### ############### #####
Within the .aspx page I have this:
############### ############### #####
<td><%# p.ParcelName %></td>
############### ############### ###############
Within the code-behind page I have this:
############### ############### ###############
private void Page_Load(objec t sender, System.EventArg s e)
{
ParcelBusiness p = new ParcelBusiness( Convert.ToInt32
(Request.QueryS tring["parcelID"]));
DataBind();
}
p.ParcelName returns the parcel name from the business
layer in string format. When I attempt to access
the .aspx page, the following error is generated:
CS0246: The type or namespace name 'p' could not be found
Your advice will be greatly appreciated.
-Andrew
the display aspx page. Perhaps someone can suggest what I
am doing wrong.
############### ############### #####
Within the .aspx page I have this:
############### ############### #####
<td><%# p.ParcelName %></td>
############### ############### ###############
Within the code-behind page I have this:
############### ############### ###############
private void Page_Load(objec t sender, System.EventArg s e)
{
ParcelBusiness p = new ParcelBusiness( Convert.ToInt32
(Request.QueryS tring["parcelID"]));
DataBind();
}
p.ParcelName returns the parcel name from the business
layer in string format. When I attempt to access
the .aspx page, the following error is generated:
CS0246: The type or namespace name 'p' could not be found
Your advice will be greatly appreciated.
-Andrew
Comment