ASP.NET content incode id

Posted by WtFudgE on Stack Overflow See other posts from Stack Overflow or by WtFudgE
Published on 2010-04-01T10:29:51Z Indexed on 2010/04/01 10:33 UTC
Read the original article Hit count: 478

Filed under:
|
|
|

Hi, I recently started using Masterpages, the thing is I would like to add text in code to an asp:Content tag.

So my content page markup code is:

<%@ Page Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ASP_Test_WebApp.Default" %>
<asp:Content id="TEST" ContentPlaceHolderID="Main" Runat="Server" />

So now I would like to add Contents to the "TEST" id incode.

But my in code doesn't recognize TEST. If I don't use a masterpage and I give an id to a tag my in code reconigzes it, but now that I started using masterpages it doesn't.

What am I doing wrong?

Thx

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about content