Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

ASPX Tags not rendered in ASCX User Control

$
0
0

In an ASPX file I have something like this:

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="articleFeature.ascx.vb" Inherits="ASCX_articleFeature" %><%@ Register TagPrefix="prefix" TagName="feature" Src="~/ASCX/feature.ascx" %>

here some static content, that is rendered without problems

<%# myProtectedCodeBehindMethod() %><% myProtectedCodeBehindMethod() %>

more static

The method calls are ignored at all, I just get the static content as output.

Method calls inside a FormView are working fine, but

<asp:Label><% method() %></asp:Label>

is not working, either.

In the next step I want to render this control using renderControl(), which also just outputs the static contents.


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>