May 25, 2011, 2:31 PM
How to show a value from a variable from code behind in the ascx-file ?
Hello World,
I have searched but not found - maybe you can help me.
:-)
I have a variable with a value in the code behind file *.ascx.cs
which I would like to show in my *.ascx file for the user.
How shall I do that ?
In this code I have tried
Any advice to a confused programmer ?!?!
I have searched but not found - maybe you can help me.
:-)
I have a variable with a value in the code behind file *.ascx.cs
which I would like to show in my *.ascx file for the user.
How shall I do that ?
In this code I have tried
<%= myVariableFromCOdeBehind %>
but I got ASP.NET runtime error: Code blocks are not supported in this context. <ext:Tab ID="TabDocuments" runat="server" Title="DokumentABC" Border="false">
<Body>
<ext:FitLayout runat="server">
<ext:DataView runat="server" StoreID="DocumentStore" ItemSelector="span:first-child">
<Template ID="Template1" runat="server">
<tpl for=".">
<span style="float:left;
padding: 3px 5px 3px 5px;
text-align:left;">
<div style="width: 100px;" ><b><%= allDocuments[0].getDocumentName() %>:</b><br /><a href="/pages/downloaddocument/DownloadDocumentHelper.aspx?id={RevisionGuid}&type=SupplierDocument" target="_blank" > {DocumentTitle}</a></div>
</span>
</tpl>
</Template>
</ext:DataView>
</ext:FitLayout>
</Body>
</ext:Tab>
Any advice to a confused programmer ?!?!
Last edited by geoffrey.mcgill; May 25, 2011 at 2:49 PM.
Reason: please use [CODE] tags