Click here to Skip to main content
15,889,383 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends.....

I have Created master page then i have added content page after that i have added button control inside the contentplaceholder but its throwing error like this..pls help

What I have tried:

<%@ Page Title="Login" Language="C#" MasterPageFile="~/MenuPage.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="DailyExpenses.Login" %>


<asp:Content ID="logincontentid" ContentPlaceHolderID="maincontentplaceholderid" runat="server">

<asp:Button ID="btn" runat="server" />
Posted
Updated 17-Feb-18 8:25am

1 solution

try something like this
<pre><!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Medgate IT</title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900