I am pretty new to c# and asp.net and I've encountered an error on a page with the error stating that
"There can be only one 'page' directive."
The code is as follows:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddUser.aspx.cs" Inherits="OEPD.AddUser" %>
I have this page linked into another page using the
<!-- #include file="~/Admin/AddUser.aspx -->
function.This page is also using the MasterPage
<%@ Page Title=" Admin Home" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AdminHome.aspx.cs" Inherits="OEPD.Admin.AdminHome" %>
How do I fix this? So it not only links in, but works without errors?
Thanks in advance.
p.s this is my first question so I apologise if it seems a bit vague.