Does not extend class 'System.Web.UI.Page'.

found out that the page does not inherit to code-behind

'client02.Webform1' is not allowed here because it does not extend class 'System.Web.UI.Page'.
webform1.aspx
-------------
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="client02.Webform1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>


webform1.aspx.cs
----------------
namespace client02
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

Open in new window

LVL 1
doramail05Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
HainKurtConnect With a Mentor Sr. System AnalystCommented:
try

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="client02.WebForm1" %>

Webform1-->WebForm1
0
 
doramail05Author Commented:
aiks, ta
0
All Courses

From novice to tech pro — start learning today.